C# 클래스 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).
상속: Multipart
파일 보기 프로젝트 열기: nachocove/MimeKit 1 사용 예제들

공개 메소드들

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

비공개 메소드들

메소드 설명
GetText ( TextPart text ) : string

메소드 상세

Accept() 공개 메소드

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

GetTextBody() 공개 메소드

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

MultipartAlternative() 공개 메소드

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
리턴 System

MultipartAlternative() 공개 메소드

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