CachingMode enumeration
The CachingMode enumeration specifies how a stream is cached during loading.
Namespace: Microsoft.Exchange.Data.Mime
Assembly: Microsoft.Exchange.Data.Common (in Microsoft.Exchange.Data.Common.dll)
Syntax
'Declaration
Public Enumeration CachingMode
'Usage
Dim instance As CachingMode
public enum CachingMode
Members
Member name | Description | |
---|---|---|
Copy | Specifies the creation of a new stream to hold the contents of the original Multipurpose Internet Mail Extensions (MIME) stream. You can close the original MIME stream immediately after it is parsed. | |
Source | Specifies the use of the source MIME stream as the data store. Source is not supported when a Stream interface is used. Also, the source stream must support seeking. The source stream should not be closed until all operations on the Document Object Model (DOM) are finished. You must manually close the source stream. | |
SourceTakeOwnership | Specifies the use of the source MIME stream as the data store. Source is not supported when a Stream interface is used. Also, the source stream must support seeking. The source stream should not be closed until all operations on the DOM are finished. You must manually close the source stream. When the MimeDocument is disposed, the source stream is automatically disposed also. |