MimePart.GetContentWriteStream Method (String)
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 String _
) As Stream
'Usage
Dim instance As MimePart
Dim transferEncoding As String
Dim returnValue As Stream
returnValue = instance.GetContentWriteStream(transferEncoding)
public Stream GetContentWriteStream(
string transferEncoding
)
Parameters
- transferEncoding
Type: System.String
The content transfer encoding to use when writing to this MimePart object.
Return Value
Type: System.IO.Stream
Remarks
Only the standard content-transfer-encoding strings are supported.
You own the stream returned by GetContentWriteStream. You should dispose of it when you are finished with it to reclaim system resources.