Enum FileFormat
Enum FileFormat
Der Name: Aspose.Note Zusammensetzung: Aspose.Note.dll (25.4.0)
Es ist ein OneNote-Dateiformat.
public enum FileFormat
Fields
OneNote2007 = 1
Die OneNote 2010.
OneNote2010 = 2
Die OneNote 2010.
OneNoteOnline = 3
OneNote im Internet.
Unknown = 0
Unbekannte Dateiformate.
Examples
Erläutert, wie Sie überprüfen können, ob eine Dokumentladung failliert ist, weil das OneNote 2007-Format nicht unterstützt wird.
// 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;
}