MimePart.GetContentWriteStream method (ContentTransferEncoding)
The GetContentWriteStream method returns a stream that will be written to by using the specified content transfer encoding.
Namespace: Microsoft.Exchange.Data.Mime
Assembly: Microsoft.Exchange.Data.Common (in Microsoft.Exchange.Data.Common.dll)
Syntax
'Declaration
Public Function GetContentWriteStream ( _
transferEncoding As ContentTransferEncoding _
) As Stream
'Usage
Dim instance As MimePart
Dim transferEncoding As ContentTransferEncoding
Dim returnValue As Stream
returnValue = instance.GetContentWriteStream(transferEncoding)
public Stream GetContentWriteStream(
ContentTransferEncoding transferEncoding
)
Parameters
transferEncoding
Type: Microsoft.Exchange.Data.Mime.ContentTransferEncodingA ContentTransferEncoding enumeration value that will be set on this MimePart object.
Return value
Type: System.IO.Stream
Remarks
Specifying a value of Unknown for transferEncoding will cause an exception to be thrown.
You own the stream returned by GetContentWriteStream. You should dispose of it when you have finished with it to reclaim system resources