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 _
)
'Usage
Dim instance As MimePart
Dim transferEncoding As String
Dim contentStream As Stream
Dim cachingMode As CachingMode
instance.SetContentStream(transferEncoding, _
contentStream, cachingMode)
public void SetContentStream(
string transferEncoding,
Stream contentStream,
CachingMode cachingMode
)
Parameters
- transferEncoding
Type: System.String
A string that specifies the content transfer encoding to use when setting the content by using contentStream.
- contentStream
Type: System.IO.Stream
A stream that contains the content.
- cachingMode
Type: Microsoft.Exchange.Data.Mime.CachingMode
A CachingMode enumeration value that specifies how to treat contentStream.
Remarks
Only the standard content-transfer-encoding strings are supported.