C# Class MimeKit.MultipartAlternative

A multipart/alternative MIME entity.
A multipart/alternative MIME entity contains, as one might expect, is used to offer a list of alternative formats for the main body of the message (usually they will be "text/plain" and "text/html"). These alternatives are in order of increasing faithfulness to the original document (in other words, the last entity will be in a format that, when rendered, will most closely match what the sending client's WYSISYG editor produced).
Inheritance: Multipart
Exibir arquivo Open project: nachocove/MimeKit Class Usage Examples

Public Methods

Method Description
Accept ( MimeKit.MimeVisitor visitor ) : void

Dispatches to the specific visit method for this MIME entity.

This default implementation for MimeKit.MultipartAlternative nodes calls MimeKit.MimeVisitor.VisitMultipartAlternative. Override this method to call into a more specific method on a derived visitor class of the MimeKit.MimeVisitor class. However, it should still support unknown visitors by calling MimeKit.MimeVisitor.VisitMultipartAlternative.

GetTextBody ( TextFormat format ) : string

Get the text body in the specified format.

Gets the text body in the specified format, if it exists.

MultipartAlternative ( ) : System

Initializes a new instance of the MimeKit.MultipartAlternative class.

Creates a new MultipartAlternative part.

MultipartAlternative ( MimeKit.MimeEntityConstructorArgs args ) : System

Initializes a new instance of the MimeKit.MultipartAlternative class.

This constructor is used by MimeKit.MimeParser.

Private Methods

Method Description
GetText ( TextPart text ) : string

Method Details

Accept() public method

Dispatches to the specific visit method for this MIME entity.
This default implementation for MimeKit.MultipartAlternative nodes calls MimeKit.MimeVisitor.VisitMultipartAlternative. Override this method to call into a more specific method on a derived visitor class of the MimeKit.MimeVisitor class. However, it should still support unknown visitors by calling MimeKit.MimeVisitor.VisitMultipartAlternative.
/// is null. ///
public Accept ( MimeKit.MimeVisitor visitor ) : void
visitor MimeKit.MimeVisitor The visitor.
return void

GetTextBody() public method

Get the text body in the specified format.
Gets the text body in the specified format, if it exists.
public GetTextBody ( TextFormat format ) : string
format TextFormat The desired text format.
return string

MultipartAlternative() public method

Initializes a new instance of the MimeKit.MultipartAlternative class.
Creates a new MultipartAlternative part.
/// is null. /// /// contains one or more arguments of an unknown type. ///
public MultipartAlternative ( ) : System
return System

MultipartAlternative() public method

Initializes a new instance of the MimeKit.MultipartAlternative class.
This constructor is used by MimeKit.MimeParser.
/// is null. ///
public MultipartAlternative ( MimeKit.MimeEntityConstructorArgs args ) : System
args MimeKit.MimeEntityConstructorArgs Information used by the constructor.
return System