Enum FileFormat

Enum FileFormat

نام ها : Aspose.Note جمع آوری: WL31_.dll (25.4.0)

فرمت فایل OneNote را نشان می دهد.

public enum FileFormat

Fields

OneNote2007 = 1

دانلود بازی OneNote 2010

OneNote2010 = 2

دانلود بازی OneNote 2010

OneNoteOnline = 3

OneNote آنلاین

Unknown = 0

فرمت فایل ناشناخته

Examples

نشان می دهد که چگونه می توان بررسی کرد که آیا یک بارگذاری اسناد شکست خورده است زیرا فرمت OneNote 2007 پشتیبانی نمی شود.

// The path to the documents directory.
                                                                                                        string dataDir = RunExamples.GetDataDir_LoadingAndSaving();
                                                                                                        string fileName = Path.Combine(dataDir, "OneNote2007.one");

                                                                                                        try
                                                                                                        {
                                                                                                            new Document(fileName);
                                                                                                        }
                                                                                                        catch (UnsupportedFileFormatException e)
                                                                                                        {
                                                                                                            if (e.FileFormat == FileFormat.OneNote2007)
                                                                                                            {
                                                                                                                Console.WriteLine("It looks like the provided file is in OneNote 2007 format that is not supported.");
                                                                                                            }
                                                                                                            else
                                                                                                                throw;
                                                                                                        }
 فارسی