MimePart.SetContentStream Method (ContentTransferEncoding, Stream, CachingMode)

The SetContentStream method sets the content of this MimePart object.

Namespace: Microsoft.Exchange.Data.Mime
Assembly: Microsoft.Exchange.Data.Common (in microsoft.exchange.data.common.dll)

Syntax

'Declaration
Public Sub SetContentStream ( _
    transferEncoding As ContentTransferEncoding, _
    contentStream As Stream, _
    cachingMode As CachingMode _
)
public void SetContentStream (
    ContentTransferEncoding transferEncoding,
    Stream contentStream,
    CachingMode cachingMode
)
public:
void SetContentStream (
    ContentTransferEncoding transferEncoding, 
    Stream^ contentStream, 
    CachingMode cachingMode
)
public void SetContentStream (
    ContentTransferEncoding transferEncoding, 
    Stream contentStream, 
    CachingMode cachingMode
)
public function SetContentStream (
    transferEncoding : ContentTransferEncoding, 
    contentStream : Stream, 
    cachingMode : CachingMode
)

Parameters

  • transferEncoding
    A ContentTransferEncoding enumeration value that specifies the content transfer encoding to use when setting the content by using contentStream.
  • contentStream
    A stream that contains the content.
  • cachingMode
    A CachingMode enumeration value that specifies how to treat contentStream.

Remarks

The Content-Transfer-Encoding header will be updated to match the value of transferEncoding. If transferEncoding is ContentTransferEncoding.Unknown, no change will be made to the current content-transfer-encoding header.

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