Sdílet prostřednictvím


MimePart Constructor (String, String, Stream, CachingMode)

The MimePart method creates a new MimePart object, gives it a specified content type, and sets the content.

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 String, _
    contentStream As Stream, _
    cachingMode As CachingMode _
)
public MimePart (
    string contentType,
    string transferEncoding,
    Stream contentStream,
    CachingMode cachingMode
)
public:
MimePart (
    String^ contentType, 
    String^ transferEncoding, 
    Stream^ contentStream, 
    CachingMode cachingMode
)
public MimePart (
    String contentType, 
    String transferEncoding, 
    Stream contentStream, 
    CachingMode cachingMode
)
public function MimePart (
    contentType : String, 
    transferEncoding : String, 
    contentStream : Stream, 
    cachingMode : CachingMode
)

Parameters

  • contentType
    A string that contains the Content-Type header to use.
  • transferEncoding
    A string that describes the content transfer encoding to apply to contentType and contentStream.
  • contentStream
    A stream that contains Multipurpose Internet Mail Extensions (MIME) content to put in this header.
  • cachingMode
    A CachingMode enumeration value that specifies how to treat contentStream.

Platforms

Development Platforms

Windows XP Professional with Service Pack 2 (SP2), Windows Server 2003,

Target Platforms

Windows Server 2003