Enum FileFormat

Enum FileFormat

İsim alanı : Aspose.Note Toplama: Aspose.Note.dll (25.4.0)

OneNote dosya biçimini temsil eder.

public enum FileFormat

Fields

OneNote2007 = 1

OneNote 2010 için.

OneNote2010 = 2

OneNote 2010 için.

OneNoteOnline = 3

OneNote çevrimiçi

Unknown = 0

Bilinmeyen dosya biçimi.

Examples

Bir belge yükleme başarısız olup olmadığını nasıl kontrol edeceğinizi gösterir, çünkü OneNote 2007 biçimi desteklenmez.

// 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;
                                                                                                        }
 Türkçe