Enum FileFormat
Enum FileFormat
Numele spaţiului: Aspose.Note Asamblare: Aspose.Note.dll (25.4.0)
Formatul de fișier OneNote.
public enum FileFormat
Fields
OneNote2007 = 1
Unul din 2010.
OneNote2010 = 2
Unul din 2010.
OneNoteOnline = 3
OneNote este online.
Unknown = 0
Formatul de fișier necunoscut.
Examples
Află cum să verificați dacă o încărcare a unui document eșuează, deoarece formatul OneNote 2007 nu este susținut.
// 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;
}