Enum FileFormat

Enum FileFormat

Именује се: Aspose.Note Асамблеја: Aspose.Note.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;
                                                                                                        }
 Српски