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