MimeDocument.WriteTo Method (Stream, EncodingOptions, MimeOutputFilter)
The WriteTo method writes the Multipurpose Internet Mail Extensions (MIME) data in the Document Object Model (DOM) to stream by using encodingOptions and filter.
Namespace: Microsoft.Exchange.Data.Mime
Assembly: Microsoft.Exchange.Data.Common (in Microsoft.Exchange.Data.Common.dll)
Syntax
'Declaration
Public Function WriteTo ( _
stream As Stream, _
encodingOptions As EncodingOptions, _
filter As MimeOutputFilter _
) As Long
'Usage
Dim instance As MimeDocument
Dim stream As Stream
Dim encodingOptions As EncodingOptions
Dim filter As MimeOutputFilter
Dim returnValue As Long
returnValue = instance.WriteTo(stream, _
encodingOptions, filter)
public long WriteTo(
Stream stream,
EncodingOptions encodingOptions,
MimeOutputFilter filter
)
Parameters
- stream
Type: System.IO.Stream
The stream into which to write the MIME data that is contained in this MimeDocument object.
- encodingOptions
Type: Microsoft.Exchange.Data.Mime.EncodingOptions
An EncodingOptions class that controls how to encode the MIME data as it is written to stream.
- filter
Type: Microsoft.Exchange.Data.Mime.MimeOutputFilter
A MimeOutputFilter object that controls which headers and what content is written to stream.
Return Value
Type: System.Int64