Aspose.Note for .Net
Document Constructor (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.
Namespace: Aspose.Note
Assembly: Aspose.Note (in Aspose.Note.dll) Version: 18.1

public Document( string filePath, LoadOptions loadOptions )
Public Sub New ( filePath As String, loadOptions As LoadOptions )
public: Document( String^ filePath, LoadOptions^ loadOptions )
new : filePath : string * loadOptions : LoadOptions -> Document
Parameters
- filePath
- Type: SystemString
The file path. - loadOptions
- Type: Aspose.NoteLoadOptions
Options used to load a document. Can be null.

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. |
