C# Class MailKit.BodyPartText

A textual body part.
Represents any body part with a media type of "text".
Inheritance: BodyPartBasic
Show file Open project: jstedfast/MailKit Class Usage Examples

Public Methods

Method Description
Accept ( MailKit.BodyPartVisitor visitor ) : void

Dispatches to the specific visit method for this MIME body part.

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

BodyPartText ( ) : System

Initializes a new instance of the MailKit.BodyPartText class.

Creates a new BodyPartText.

Protected Methods

Method Description
Encode ( StringBuilder builder ) : void

Encodes the BodyPart into the System.Text.StringBuilder.

Encodes the BodyPart into the System.Text.StringBuilder.

Method Details

Accept() public method

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

BodyPartText() public method

Initializes a new instance of the MailKit.BodyPartText class.
Creates a new BodyPartText.
public BodyPartText ( ) : System
return System

Encode() protected method

Encodes the BodyPart into the System.Text.StringBuilder.
Encodes the BodyPart into the System.Text.StringBuilder.
protected Encode ( StringBuilder builder ) : void
builder StringBuilder The string builder.
return void