MimePart.WriteTo method (Stream, EncodingOptions, MimeOutputFilter)
The WriteTo method writes the contents of this MimePart object to a stream.
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 MimePart
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.StreamThe stream to write to.
encodingOptions
Type: Microsoft.Exchange.Data.Mime.EncodingOptionsAn EncodingOptions enumeration value that specifies how to encode the data as it is written to stream.
filter
Type: Microsoft.Exchange.Data.Mime.MimeOutputFilterA MimeOutputFilter callback object that controls the data as it is written to stream.
Return value
Type: System.Int64