C# Class MimeKit.Parameter

A header parameter as found in the Content-Type and Content-Disposition headers.
Content-Type and Content-Disposition headers often have parameters that specify further information about how to interpret the content.
Datei anzeigen Open project: nachocove/MimeKit Class Usage Examples

Public Methods

Method Description
Parameter ( Portable.Text.Encoding encoding, string name, string value ) : System

Initializes a new instance of the Parameter class.

Creates a new parameter with the specified name and value.

Parameter ( string name, string value ) : System

Initializes a new instance of the Parameter class.

Creates a new parameter with the specified name and value.

Parameter ( string charset, string name, string value ) : System

Initializes a new instance of the Parameter class.

Creates a new parameter with the specified name and value.

ToString ( ) : string

Returns a string representation of the Parameter.

Formats the parameter name and value in the form name="value".

Private Methods

Method Description
Encode ( MimeKit.FormatOptions options, StringBuilder builder, int &lineLength, Portable.Text.Encoding headerEncoding ) : void
EncodeRfc2047 ( MimeKit.FormatOptions options, StringBuilder builder, int &lineLength, Portable.Text.Encoding headerEncoding ) : void
EncodeRfc2231 ( MimeKit.FormatOptions options, StringBuilder builder, int &lineLength, Portable.Text.Encoding headerEncoding ) : void
EstimateEncodedWordLength ( string charset, int byteCount, int encodeCount ) : int
ExceedsMaxWordLength ( string charset, int byteCount, int encodeCount, int maxLength ) : bool
GetBestEncoding ( string value, Portable.Text.Encoding defaultEncoding ) : Portable.Text.Encoding
GetEncodeMethod ( MimeKit.FormatOptions options, char value, int startIndex, int length ) : EncodeMethod
GetEncodeMethod ( MimeKit.FormatOptions options, string name, string value, string &quoted ) : EncodeMethod
GetEncodeMethod ( byte value, int length ) : EncodeMethod
IsAttr ( byte c ) : bool
IsCtrl ( char c ) : bool
OnChanged ( ) : void
Rfc2047EncodeNextChunk ( StringBuilder str, string text, int &index, Portable.Text.Encoding encoding, string charset, Portable.Text.Encoder encoder, int maxLength ) : int
Rfc2231GetNextValue ( MimeKit.FormatOptions options, string charset, Portable.Text.Encoder encoder, MimeKit.Encodings.HexEncoder hex, char chars, int &index, byte &bytes, byte &encoded, int maxLength, string &value ) : bool

Method Details

Parameter() public method

Initializes a new instance of the Parameter class.
Creates a new parameter with the specified name and value.
/// is null. /// -or- /// is null. /// -or- /// is null. /// /// contains illegal characters. ///
public Parameter ( Portable.Text.Encoding encoding, string name, string value ) : System
encoding Portable.Text.Encoding The character encoding.
name string The parameter name.
value string The parameter value.
return System

Parameter() public method

Initializes a new instance of the Parameter class.
Creates a new parameter with the specified name and value.
/// is null. /// -or- /// is null. /// /// contains illegal characters. ///
public Parameter ( string name, string value ) : System
name string The parameter name.
value string The parameter value.
return System

Parameter() public method

Initializes a new instance of the Parameter class.
Creates a new parameter with the specified name and value.
/// is null. /// -or- /// is null. /// -or- /// is null. /// /// contains illegal characters. /// /// is not supported. ///
public Parameter ( string charset, string name, string value ) : System
charset string The character encoding.
name string The parameter name.
value string The parameter value.
return System

ToString() public method

Returns a string representation of the Parameter.
Formats the parameter name and value in the form name="value".
public ToString ( ) : string
return string