Enum FileFormat
FileFormat enumeration
Representerar OneNote-filformat.
public enum FileFormat
Värderingar
namn | Värde | Beskrivning |
---|---|---|
Unknown | 0 | Okänt filformat. |
OneNote2007 | 1 | OneNote 2010. |
OneNote2010 | 2 | OneNote 2010. |
OneNoteOnline | 3 | OneNote Online. |
Exempel
Visar hur du kontrollerar om en dokumentladdning misslyckades eftersom OneNote 2007-formatet inte stöds.
// Sökvägen till dokumentkatalogen.
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;
}
Se även
- namnutrymme Aspose.Note
- hopsättning Aspose.Note