|DocumentWrite Method (Stream, DocumentWriteMode, Boolean)|
public void Write( Stream stream, DocumentWriteMode writeMode, bool keepOpen )
Public Sub Write ( stream As Stream, writeMode As DocumentWriteMode, keepOpen As Boolean )
For signing support you must be sure the stream is seekable. If the stream is writable only (eg Response.OutputStream) an exception will be raised. The stream is flushed before this method returns.
If keepOpen is false, you cannot write more than once on the same document instance. After calling Document.Write() information in this instance can be incorrect.