Document Constructor (String)

Aspose.Note for .NET API

Document Constructor (String)

Initializes a new instance of the Document class. Opens an existing OneNote document from a file.

Namespace:  Aspose.Note
Assembly:  Aspose.Note (in Aspose.Note.dll) Version: 18.1
Syntax
public Document(
	string filePath
)
Public Sub New ( 
	filePath As String
)
public:
Document(
	String^ filePath
)
new : 
        filePath : string -> Document

Parameters

filePath
Type: SystemString
The file path.
Exceptions
ExceptionCondition
UnsupportedFileFormatExceptionThe document format is not recognized or not supported.
FileCorruptedExceptionThe document appears to be corrupted and cannot be loaded.
IncorrectPasswordExceptionThe document is encrypted and requires a password to open, but you supplied an incorrect password.
InvalidOperationExceptionThere is a problem with the document and it should be reported to Aspose.Note developers.
IOExceptionThere is an input/output exception.
See Also