C# 클래스 MimeKit.MultipartRelated

A multipart/related MIME entity.
A multipart/related MIME entity contains, as one might expect, inter-related MIME parts which typically reference each other via URIs based on the Content-Id and/or Content-Location headers.
상속: Multipart
파일 보기 프로젝트 열기: nachocove/MimeKit 1 사용 예제들

공개 메소드들

메소드 설명
Accept ( MimeKit.MimeVisitor visitor ) : void

Dispatches to the specific visit method for this MIME entity.

This default implementation for MimeKit.MultipartRelated nodes calls MimeKit.MimeVisitor.VisitMultipartRelated. 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.VisitMultipartRelated.

Contains ( Uri uri ) : bool

Checks if the MultipartRelated contains a part matching the specified URI.

Determines whether or not the multipart/related entity contains a part matching the specified URI.

IndexOf ( Uri uri ) : int

Gets the index of the part matching the specified URI.

Finds the index of the part matching the specified URI, if it exists.

If the URI scheme is "cid", then matching is performed based on the Content-Id header values, otherwise the Content-Location headers are used. If the provided URI is absolute and a child part's Content-Location is relative, then then the child part's Content-Location URI will be combined with the value of its Content-Base header, if available, otherwise it will be combined with the multipart/related part's Content-Base header in order to produce an absolute URI that can be compared with the provided absolute URI.

MultipartRelated ( ) : System

Initializes a new instance of the MimeKit.MultipartRelated class.

Creates a new MultipartRelated part.

MultipartRelated ( MimeEntityConstructorArgs args ) : System

Initializes a new instance of the MimeKit.MultipartRelated class.

This constructor is used by MimeKit.MimeParser.

Open ( Uri uri ) : Stream

Opens a stream for reading the decoded content of the MIME part specified by the provided URI.

Opens a stream for reading the decoded content of the MIME part specified by the provided URI.

Open ( Uri uri, string &mimeType, string &charset ) : Stream

Opens a stream for reading the decoded content of the MIME part specified by the provided URI.

Opens a stream for reading the decoded content of the MIME part specified by the provided URI.

비공개 메소드들

메소드 설명
GetRootIndex ( ) : int

메소드 상세

Accept() 공개 메소드

Dispatches to the specific visit method for this MIME entity.
This default implementation for MimeKit.MultipartRelated nodes calls MimeKit.MimeVisitor.VisitMultipartRelated. 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.VisitMultipartRelated.
/// is null. ///
public Accept ( MimeKit.MimeVisitor visitor ) : void
visitor MimeKit.MimeVisitor The visitor.
리턴 void

Contains() 공개 메소드

Checks if the MultipartRelated contains a part matching the specified URI.
Determines whether or not the multipart/related entity contains a part matching the specified URI.
/// is null. ///
public Contains ( Uri uri ) : bool
uri System.Uri The URI of the MIME part.
리턴 bool

IndexOf() 공개 메소드

Gets the index of the part matching the specified URI.

Finds the index of the part matching the specified URI, if it exists.

If the URI scheme is "cid", then matching is performed based on the Content-Id header values, otherwise the Content-Location headers are used. If the provided URI is absolute and a child part's Content-Location is relative, then then the child part's Content-Location URI will be combined with the value of its Content-Base header, if available, otherwise it will be combined with the multipart/related part's Content-Base header in order to produce an absolute URI that can be compared with the provided absolute URI.

/// is null. ///
public IndexOf ( Uri uri ) : int
uri Uri The URI of the MIME part.
리턴 int

MultipartRelated() 공개 메소드

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

MultipartRelated() 공개 메소드

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

Open() 공개 메소드

Opens a stream for reading the decoded content of the MIME part specified by the provided URI.
Opens a stream for reading the decoded content of the MIME part specified by the provided URI.
/// is null. /// /// The MIME part for the specified URI could not be found. ///
public Open ( Uri uri ) : Stream
uri Uri The URI.
리턴 Stream

Open() 공개 메소드

Opens a stream for reading the decoded content of the MIME part specified by the provided URI.
Opens a stream for reading the decoded content of the MIME part specified by the provided URI.
/// is null. /// /// The MIME part for the specified URI could not be found. ///
public Open ( Uri uri, string &mimeType, string &charset ) : Stream
uri Uri The URI.
mimeType string The mime-type of the content.
charset string The charset of the content (if the content is text-based)
리턴 Stream