C# 클래스 MailKit.BodyPart

An abstract body part of a message.
Each body part will actually be a BodyPartBasic, BodyPartText, BodyPartMessage, or BodyPartMultipart.
파일 보기 프로젝트 열기: jstedfast/MailKit 1 사용 예제들

공개 메소드들

메소드 설명
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.

ToString ( ) : string

Returns a System.String that represents the current MailKit.BodyPart.

Returns a System.String that represents the current MailKit.BodyPart.

The syntax of the string returned, while similar to IMAP's BODYSTRUCTURE syntax, is not completely compatible.
TryParse ( string text, BodyPart &part ) : bool

Tries to parse the given text into a new MailKit.BodyPart instance.

Parses a body part from the specified text.

This syntax, while similar to IMAP's BODYSTRUCTURE syntax, is not completely compatible.

보호된 메소드들

메소드 설명
BodyPart ( ) : System

Initializes a new instance of the MailKit.BodyPart class.

Creates a new MailKit.BodyPart.

Encode ( StringBuilder builder ) : void

Encodes the BodyPart into the System.Text.StringBuilder.

Encodes the BodyPart into the System.Text.StringBuilder.

비공개 메소드들

메소드 설명
Encode ( StringBuilder builder, BodyPart body ) : void
Encode ( StringBuilder builder, BodyPartCollection parts ) : void
Encode ( StringBuilder builder, MimeKit.ContentDisposition disposition ) : void
Encode ( StringBuilder builder, MimeKit.ContentType contentType ) : void
Encode ( StringBuilder builder, Envelope envelope ) : void
Encode ( StringBuilder builder, IList parameters ) : void
Encode ( StringBuilder builder, Uri location ) : void
Encode ( StringBuilder builder, string value ) : void
Encode ( StringBuilder builder, uint value ) : void
TryParse ( string text, int &index, MimeKit.ContentDisposition &disposition ) : bool
TryParse ( string text, int &index, IList &parameters ) : bool
TryParse ( string text, int &index, Uri &uri ) : bool
TryParse ( string text, int &index, bool multipart, MimeKit.ContentType &contentType ) : bool
TryParse ( string text, int &index, string &nstring ) : bool
TryParse ( string text, int &index, string path, BodyPart &part ) : bool
TryParse ( string text, int &index, string prefix, IList &children ) : bool
TryParse ( string text, int &index, uint &value ) : bool

메소드 상세

Accept() 공개 메소드

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.
리턴 void

BodyPart() 보호된 메소드

Initializes a new instance of the MailKit.BodyPart class.
Creates a new MailKit.BodyPart.
protected BodyPart ( ) : System
리턴 System

Encode() 보호된 추상적인 메소드

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

ToString() 공개 메소드

Returns a System.String that represents the current MailKit.BodyPart.

Returns a System.String that represents the current MailKit.BodyPart.

The syntax of the string returned, while similar to IMAP's BODYSTRUCTURE syntax, is not completely compatible.
public ToString ( ) : string
리턴 string

TryParse() 공개 정적인 메소드

Tries to parse the given text into a new MailKit.BodyPart instance.

Parses a body part from the specified text.

This syntax, while similar to IMAP's BODYSTRUCTURE syntax, is not completely compatible.
/// is null. ///
public static TryParse ( string text, BodyPart &part ) : bool
text string The text to parse.
part BodyPart The parsed body part.
리턴 bool