C# Class 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.
Inheritance: Multipart
Afficher le fichier Open project: nachocove/MimeKit Class Usage Examples

Méthodes publiques

Méthode Description
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.

Private Methods

Méthode Description
GetRootIndex ( ) : int

Method Details

Accept() public méthode

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.
Résultat void

Contains() public méthode

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.
Résultat bool

IndexOf() public méthode

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.
Résultat int

MultipartRelated() public méthode

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
Résultat System

MultipartRelated() public méthode

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.
Résultat System

Open() public méthode

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.
Résultat Stream

Open() public méthode

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)
Résultat Stream