Enum FileFormat

Enum FileFormat

Il nome: Aspose.Note Assemblea: Aspose.Note.dll (25.4.0)

Il formato di file OneNote.

public enum FileFormat

Fields

OneNote2007 = 1

Il nuovo OneNote 2010.

OneNote2010 = 2

Il nuovo OneNote 2010.

OneNoteOnline = 3

Scrivi una recensione online.

Unknown = 0

Formato di file sconosciuto.

Examples

Mostra come verificare se un carico di documento fallisce perché il formato OneNote 2007 non è supportato.

// 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;
                                                                                                        }
 Italiano