Share via


MimePart members

The MimePart class represents a Multipurpose Internet Mail Extensions (MIME) part.

The MimePart type exposes the following members.

Constructors

  Name Description
Public method MimePart() The MimePart constructor creates a blank MimePart object.
Public method MimePart(String) The MimePart constructor creates a new MimePart object and adds a Content-Type header.
Public method MimePart(String, ContentTransferEncoding, Stream, CachingMode) The MimePart constructor creates a new MimePart object, gives it a specified Content-Type header, and sets the content.
Public method MimePart(String, String, Stream, CachingMode) The MimePart method creates a new MimePart object, gives it a specified content type, and sets the content.

Top

Properties

  Name Description
Public property ContentTransferEncoding The ContentTransferEncoding property gets the content transfer encoding that is used to encode this MimePart object.
Public property ContentType The ContentType property gets the content type of this MimePart object.
Public property FirstChild The FirstChild property gets the MimeNode object that is the first child of this MimeNode object. (Inherited from MimeNode.)
Public property HasChildren The HasChildren property gets a bool value that indicates whether this MimeNode object has children. (Inherited from MimeNode.)
Public property Headers The Headers property gets a HeaderList object that represents the headers in this MimePart object.
Public property IsEmbeddedMessage The IsEmbeddedMessage property gets a bool that indicates whether this MimePart object contains an embedded message.
Public property IsMultipart The IsMultipart property gets a bool that indicates whether this MimePart object represents a multipart Multipurpose Internet Mail Extensions (MIME) part.
Protected property IsReadOnly Gets a bool value that indicates whether the owning MimeDocument object is read-only. (Inherited from MimeNode.)
Public property LastChild The LastChild property gets the last child of this MimeNode object. (Inherited from MimeNode.)
Public property NextSibling The NextSibling property gets the next MimeNode object in the list of children that belong to this MimeNode object. (Inherited from MimeNode.)
Public property Parent The Parent property gets the MimeNode object that is the parent of this MimeNode object. (Inherited from MimeNode.)
Public property PreviousSibling The PreviousSibling property gets the previous MimeNode object in the list of children that belong to this MimeNode object. (Inherited from MimeNode.)
Public property Subtree Gets an enumerable MIME part subtree that can be traversed or passed to the IEnumerable<MimePart>.GetEnumerator() method, which supports more advanced enumeration.
Public property Version The Version property gets the version of the content of this MimePart object.

Top

Methods

  Name Description
Public method AppendChild The AppendChild method puts a MimeNode object onto the end of the list of children that belong to this MimeNode object. (Inherited from MimeNode.)
Public method Clone The Clone method returns a deep copy of this MimePart object. (Overrides MimeNode.Clone().)
Public method CopyTo The CopyTo method stores a copy of this MimePart object in destination. (Overrides MimeNode.CopyTo(Object).)
Public method Dispose() The Dispose method releases all resources used by the MimePart class.
Protected method Dispose(Boolean) The Dispose method releases the unmanaged resources used by the MimePart class and optionally releases the managed resources.
Public method GetContentReadStream The GetContentReadStream method returns a stream that can be used to access the content of this MimePart object.
Public method GetContentWriteStream(String) The GetContentWriteStream method returns a stream that will be written to by using the specified content transfer encoding.
Public method GetContentWriteStream(ContentTransferEncoding) The GetContentWriteStream method returns a stream that will be written to by using the specified content transfer encoding.
Public method GetEnumerator The GetEnumerator method returns an enumerator that can be used to iterate over the MimeNode objects in this MimePart object.
Public method GetRawContentReadStream The GetRawContentReadStream method returns a stream that can be used to read the encoded content.
Public method GetRawContentWriteStream The GetRawContentWriteStream method returns a stream that can be used to write data into the body of this MimePart object.
Public method InsertAfter The InsertAfter method inserts a new MimeNode object after a specified MimeNode object in the list of the children of this MimeNode object. (Inherited from MimeNode.)
Public method InsertBefore The InsertBefore method inserts a new MimeNode object before a specified MimeNode object in the list of the children of this MimeNode object. (Inherited from MimeNode.)
Public method PrependChild The PrependChild method puts a MimeNode at the start of the list of the children of this MimeNode object. (Inherited from MimeNode.)
Public method RemoveAll The RemoveAll method removes all children of this MimeNode object. (Inherited from MimeNode.)
Public method RemoveChild The RemoveChild method removes the specified child MimeNode object from the list of the children of this MimeNode object. (Inherited from MimeNode.)
Public method RemoveFromParent The RemoveFromParent method removes this MimeNode object from its parent. (Inherited from MimeNode.)
Public method ReplaceChild The ReplaceChild method replaces a specified MimeNode child object with another specified MimeNode object. (Inherited from MimeNode.)
Public method SetContentStream(String, Stream, CachingMode) The SetContentStream method sets the content of this MimePart object.
Public method SetContentStream(ContentTransferEncoding, Stream, CachingMode) The SetContentStream method sets the content of this MimePart object.
Protected method ThrowIfReadOnly Throws an exception if the owning MimeDocument object is read-only. (Inherited from MimeNode.)
Public method TryGetContentReadStream The TryGetContentReadStream method gets a stream that can be used to read the content of this MimePart object.
Public method WriteTo(Stream) The WriteTo method writes the Multipurpose Internet Mail Extensions (MIME) data in this MimeNode to stream. (Inherited from MimeNode.)
Public method WriteTo(MimeWriter) The WriteTo method writes the Multipurpose Internet Mail Extensions (MIME) data in this MimeNode to writer. (Inherited from MimeNode.)
Public method WriteTo(Stream, EncodingOptions) The WriteTo method writes the Multipurpose Internet Mail Extensions (MIME) data in this MimeNode object into stream by using encodingOptions. (Inherited from MimeNode.)
Public method WriteTo(Stream, EncodingOptions, MimeOutputFilter) The WriteTo method writes the contents of this MimePart object to a stream.

Top

See also

Reference

MimePart class

Microsoft.Exchange.Data.Mime namespace