Aspose.Note for .Net
Document Constructor (Stream) |
Initializes a new instance of the Document class.
Opens an existing OneNote document from a stream.
Namespace: Aspose.Note
Assembly: Aspose.Note (in Aspose.Note.dll) Version: 18.1

public Document( Stream inStream )
Public Sub New ( inStream As Stream )
public: Document( Stream^ inStream )
new : inStream : Stream -> Document
Parameters
- inStream
- Type: System.IOStream
The stream.

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