MimePart Constructor (String, ContentTransferEncoding, Stream, CachingMode)
Namespace: Microsoft.Exchange.Data.Mime
Assembly: Microsoft.Exchange.Data.Common (in Microsoft.Exchange.Data.Common.dll)
Syntax
'Declaration
Public Sub New ( _
contentType As String, _
transferEncoding As ContentTransferEncoding, _
contentStream As Stream, _
cachingMode As CachingMode _
)
'Usage
Dim contentType As String
Dim transferEncoding As ContentTransferEncoding
Dim contentStream As Stream
Dim cachingMode As CachingMode
Dim instance As New MimePart(contentType, _
transferEncoding, contentStream, _
cachingMode)
public MimePart(
string contentType,
ContentTransferEncoding transferEncoding,
Stream contentStream,
CachingMode cachingMode
)
Parameters
- contentType
Type: System.String
A string that contains the Content-Type header to use.
- transferEncoding
Type: Microsoft.Exchange.Data.Mime.ContentTransferEncoding
A ContentTransferEncoding enumeration value that describes the content transfer encoding to apply to contentType and contentStream.
- contentStream
Type: System.IO.Stream
A stream that contains Multipurpose Internet Mail Extensions (MIME) content to put in this header.
- cachingMode
Type: Microsoft.Exchange.Data.Mime.CachingMode
A CachingMode enumeration value that specifies how to treat contentStream.
Remarks
The MimePart method applies cachingMode to contentStream when it is creating the new MimePart object.
See Also