Document.Save Method (Stream, SaveFormat)

Aspose.Note for .NET API

DocumentSave Method (Stream, SaveFormat)

Saves the OneNote document to a stream in the specified format.

Namespace:  Aspose.Note
Assembly:  Aspose.Note (in Aspose.Note.dll) Version: 18.1
Syntax
public void Save(
	Stream stream,
	SaveFormat format
)
Public Sub Save ( 
	stream As Stream,
	format As SaveFormat
)
public:
void Save(
	Stream^ stream, 
	SaveFormat format
)
member Save : 
        stream : Stream * 
        format : SaveFormat -> unit 

Parameters

stream
Type: System.IOStream
The System.IO.Stream where the document will be saved.
format
Type: Aspose.NoteSaveFormat
The format in which to save the document.
Exceptions
ExceptionCondition
IncorrectDocumentStructureExceptionThe document structure violates specification.
UnsupportedSaveFormatExceptionRequested save format is not supported.
See Also