Summary
Gets a new document with the specified content stream and metadata (in addition to the default initial metadata).
If disposeStream is true (which it is by default), the provided
System.IO.Stream
will automatically be disposed when the document is disposed (I.e., the
document takes ownership of the System.IO.Stream
).
Syntax
IDocument GetDocument(Stream stream, IEnumerable<KeyValuePair<string, Object>> items = null, bool disposeStream = true)
Parameters
Name |
Type |
Description |
stream |
Stream |
The content stream. |
items |
IEnumerable<KeyValuePair<string, Object>> |
The metadata items. |
disposeStream |
bool |
If set to true the provided System.IO.Stream is disposed when the document is. |
Return Value