Sdílet prostřednictvím


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
public Stream GetContentWriteStream (
    string transferEncoding
)
public:
Stream^ GetContentWriteStream (
    String^ transferEncoding
)
public Stream GetContentWriteStream (
    String transferEncoding
)
public function GetContentWriteStream (
    transferEncoding : String
) : Stream

Parameters

  • transferEncoding
    The content transfer encoding to use when writing to this MimePart object.

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.

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