Document
Document()
Initializes a new instance of the Document
class. Creates a blank OneNote document.
See Also
Document(string)
Initializes a new instance of the Document
class. Opens an existing OneNote document from a file.
public Document(string filePath)
Parameter |
Type |
Description |
filePath |
String |
The file path. |
Exceptions
exception |
condition |
UnsupportedFileFormatException |
The document format is not recognized or not supported. |
FileCorruptedException |
The document appears to be corrupted and cannot be loaded. |
IncorrectPasswordException |
The document is encrypted and requires a password to open, but you supplied an incorrect password. |
InvalidOperationException |
There is a problem with the document and it should be reported to Aspose.Note developers. |
IOException |
There is an input/output exception. |
See Also
Document(string, LoadOptions)
Initializes a new instance of the Document
class. Opens an existing OneNote document from a file. Allows to specify additional options such as an encryption password.
public Document(string filePath, LoadOptions loadOptions)
Parameter |
Type |
Description |
filePath |
String |
The file path. |
loadOptions |
LoadOptions |
Options used to load a document. Can be null. |
Exceptions
exception |
condition |
UnsupportedFileFormatException |
The document format is not recognized or not supported. |
FileCorruptedException |
The document appears to be corrupted and cannot be loaded. |
IncorrectPasswordException |
The document is encrypted and requires a password to open, but you supplied an incorrect password. |
InvalidOperationException |
There is a problem with the document and it should be reported to Aspose.Note developers. |
IOException |
There is an input/output exception. |
See Also
Document(Stream)
Initializes a new instance of the Document
class. Opens an existing OneNote document from a stream.
public Document(Stream inStream)
Parameter |
Type |
Description |
inStream |
Stream |
The stream. |
Exceptions
exception |
condition |
UnsupportedFileFormatException |
The document format is not recognized or not supported. |
FileCorruptedException |
The document appears to be corrupted and cannot be loaded. |
IncorrectPasswordException |
The document is encrypted and requires a password to open, but you supplied an incorrect password. |
InvalidOperationException |
There is a problem with the document and it should be reported to Aspose.Note developers. |
IOException |
There is an input/output exception. |
ArgumentException |
The stream does not support reading, is null, or is already closed. |
See Also
Document(Stream, LoadOptions)
Initializes a new instance of the Document
class. Opens an existing OneNote document from a stream. Allows to specify additional options such as an encryption password.
public Document(Stream inStream, LoadOptions loadOptions)
Parameter |
Type |
Description |
inStream |
Stream |
The stream. |
loadOptions |
LoadOptions |
Options used to load a document. Can be null. |
Exceptions
exception |
condition |
UnsupportedFileFormatException |
The document format is not recognized or not supported. |
FileCorruptedException |
The document appears to be corrupted and cannot be loaded. |
IncorrectPasswordException |
The document is encrypted and requires a password to open, but you supplied an incorrect password. |
InvalidOperationException |
There is a problem with the document and it should be reported to Aspose.Note developers. |
IOException |
There is an input/output exception. |
ArgumentException |
The stream does not support reading, is null, or is already closed. |
See Also