Enum FileFormat
Enum FileFormat
Nombre del espacio: Aspose.Note Asamblea: Aspose.Note.dll (25.4.0)
Representa el formato de archivo OneNote.
public enum FileFormat
Fields
OneNote2007 = 1
El OneNote 2010.
OneNote2010 = 2
El OneNote 2010.
OneNoteOnline = 3
OneNote en línea.
Unknown = 0
Formato de archivo desconocido.
Examples
Mostra cómo verificar si un cargamento de documento falló porque el formato de OneNote 2007 no está soportado.
// 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;
}