MimePart.SetContentStream Method (String, 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 String, _
contentStream As Stream, _
cachingMode As CachingMode _
)
public void SetContentStream (
string transferEncoding,
Stream contentStream,
CachingMode cachingMode
)
public:
void SetContentStream (
String^ transferEncoding,
Stream^ contentStream,
CachingMode cachingMode
)
public void SetContentStream (
String transferEncoding,
Stream contentStream,
CachingMode cachingMode
)
public function SetContentStream (
transferEncoding : String,
contentStream : Stream,
cachingMode : CachingMode
)
Parameters
- transferEncoding
A string 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
Only the standard content-transfer-encoding strings are supported.
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