Method | Description | |
---|---|---|
Accept ( MimeKit.MimeVisitor visitor ) : void |
Dispatches to the specific visit method for this MIME entity. This default implementation for MimeKit.MimePart nodes calls MimeKit.MimeVisitor.VisitMimePart. 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.VisitMimePart. |
|
ComputeContentMd5 ( ) : string |
Computes the MD5 checksum of the content. Computes the MD5 checksum of the MIME content in its canonical format and then base64-encodes the result. |
|
GetBestEncoding ( EncodingConstraint constraint, |
Calculates the most efficient content encoding given the specified constraint. If no ContentObject is set, ContentEncoding.SevenBit will be returned. |
|
GetBestEncoding ( EncodingConstraint constraint, int maxLineLength, |
Calculates the most efficient content encoding given the specified constraint. If no ContentObject is set, ContentEncoding.SevenBit will be returned. |
|
MimePart ( ) : System |
Initializes a new instance of the MimeKit.MimePart class with the default Content-Type of application/octet-stream. Creates a new MimePart with a Content-Type of application/octet-stream. |
|
MimePart ( MimeKit.ContentType contentType ) : System |
Initializes a new instance of the MimeKit.MimePart class with the specified content type. Creates a new MimePart with the specified Content-Type value. |
|
MimePart ( MimeKit.MimeEntityConstructorArgs args ) : System |
Initializes a new instance of the MimeKit.MimePart class based on the MimeEntityConstructorArgs. This constructor is used by MimeKit.MimeParser. |
|
MimePart ( string contentType ) : System |
Initializes a new instance of the MimeKit.MimePart class with the specified content type. Creates a new MimePart with the specified Content-Type value. |
|
MimePart ( string mediaType, string mediaSubtype ) : System |
Initializes a new instance of the MimeKit.MimePart class with the specified media type and subtype. Creates a new MimePart with the specified media type and subtype. |
|
Prepare ( EncodingConstraint constraint, int maxLineLength = 78 ) : void |
Prepare the MIME entity for transport using the specified encoding constraints. Prepares the MIME entity for transport using the specified encoding constraints. |
|
VerifyContentMd5 ( ) : bool |
Verifies the Content-Md5 value against an independently computed md5sum. Computes the MD5 checksum of the MIME content and compares it with the value in the Content-MD5 header, returning |
|
WriteTo ( MimeKit.FormatOptions options, Stream stream, bool contentOnly, |
Writes the MimeKit.MimePart to the specified output stream. Writes the MIME part to the output stream. |
Method | Description | |
---|---|---|
OnHeadersChanged ( HeaderListChangedAction action, |
Called when the headers change in some way. Updates the ContentTransferEncoding, ContentDuration, and ContentMd5 properties if the corresponding headers have changed. |
Method | Description | |
---|---|---|
IsNullOrWhiteSpace ( string value ) : bool | ||
NeedsEncoding ( ContentEncoding encoding ) : bool |
public Accept ( MimeKit.MimeVisitor visitor ) : void | ||
visitor | MimeKit.MimeVisitor | The visitor. |
return | void |
public GetBestEncoding ( EncodingConstraint constraint, |
||
constraint | EncodingConstraint | The encoding constraint. |
cancellationToken | A cancellation token. | |
return | ContentEncoding |
public GetBestEncoding ( EncodingConstraint constraint, int maxLineLength, |
||
constraint | EncodingConstraint | The encoding constraint. |
maxLineLength | int | The maximum allowable length for a line (not counting the CRLF). Must be between |
cancellationToken | A cancellation token. | |
return | ContentEncoding |
public MimePart ( MimeKit.ContentType contentType ) : System | ||
contentType | MimeKit.ContentType | The content type. |
return | System |
public MimePart ( MimeKit.MimeEntityConstructorArgs args ) : System | ||
args | MimeKit.MimeEntityConstructorArgs | Information used by the constructor. |
return | System |
public MimePart ( string contentType ) : System | ||
contentType | string | The content type. |
return | System |
public MimePart ( string mediaType, string mediaSubtype ) : System | ||
mediaType | string | The media type. |
mediaSubtype | string | The media subtype. |
return | System |
protected OnHeadersChanged ( HeaderListChangedAction action, |
||
action | HeaderListChangedAction | The type of change. |
header | The header being added, changed or removed. | |
return | void |
public Prepare ( EncodingConstraint constraint, int maxLineLength = 78 ) : void | ||
constraint | EncodingConstraint | The encoding constraint. |
maxLineLength | int | The maximum number of octets allowed per line (not counting the CRLF). Must be between |
return | void |
public WriteTo ( MimeKit.FormatOptions options, Stream stream, bool contentOnly, |
||
options | MimeKit.FormatOptions | The formatting options. |
stream | Stream | The output stream. |
contentOnly | bool | |
cancellationToken | A cancellation token. | |
return | void |