C# Class MailKit.BodyPartBasic

A basic message body part.
Represents any message body part that is not a multipart, message/rfc822 part, or a text part.
Inheritance: BodyPart
Mostra 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.

BodyPartBasic ( ) : System

Initializes a new instance of the MailKit.BodyPartBasic class.

Creates a new BodyPartBasic.

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

BodyPartBasic() public method

Initializes a new instance of the MailKit.BodyPartBasic class.
Creates a new BodyPartBasic.
public BodyPartBasic ( ) : 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 System.Text.StringBuilder The string builder.
return void