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
public Stream GetContentWriteStream (
ContentTransferEncoding transferEncoding
)
public:
Stream^ GetContentWriteStream (
ContentTransferEncoding transferEncoding
)
public Stream GetContentWriteStream (
ContentTransferEncoding transferEncoding
)
public function GetContentWriteStream (
transferEncoding : ContentTransferEncoding
) : Stream
Parameters
- transferEncoding
A ContentTransferEncoding enumeration value that will be set on this MimePart object.
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
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms
Development Platforms
Windows XP Professional with Service Pack 2 (SP2), Windows Server 2003,
Target Platforms
Windows Server 2003