C# Class MimeKit.ParserOptions

Parser options as used by MimeParser as well as various Parse and TryParse methods in MimeKit.
Datei anzeigen Open project: nachocove/MimeKit Class Usage Examples

Public Properties

Property Type Description
Default ParserOptions

Public Methods

Method Description
Clone ( ) : ParserOptions

Clones an instance of MimeKit.ParserOptions.

Clones a set of options, allowing you to change a specific option without requiring you to change the original.

ParserOptions ( ) : System

Initializes a new instance of the MimeKit.ParserOptions class.

By default, new instances of ParserOptions enable rfc2047 work-arounds (which are needed for maximum interoperability with mail software used in the wild) and do not respect the Content-Length header value.

RegisterMimeType ( string mimeType, Type type ) : void

Registers the MimeEntity subclass for the specified mime-type.

Your custom MimeEntity class should not subclass MimeEntity directly, but rather it should subclass Multipart, MimePart, MessagePart, or one of their derivatives.

Private Methods

Method Description
CreateEntity ( MimeKit.ContentType contentType, IList
headers, bool toplevel ) : MimeKit.MimeEntity
GetConstructor ( TypeInfo type, Type argTypes ) : ConstructorInfo
IsEncoded ( IList
headers ) : bool

Method Details

Clone() public method

Clones an instance of MimeKit.ParserOptions.
Clones a set of options, allowing you to change a specific option without requiring you to change the original.
public Clone ( ) : ParserOptions
return ParserOptions

ParserOptions() public method

Initializes a new instance of the MimeKit.ParserOptions class.
By default, new instances of ParserOptions enable rfc2047 work-arounds (which are needed for maximum interoperability with mail software used in the wild) and do not respect the Content-Length header value.
public ParserOptions ( ) : System
return System

RegisterMimeType() public method

Registers the MimeEntity subclass for the specified mime-type.
Your custom MimeEntity class should not subclass MimeEntity directly, but rather it should subclass Multipart, MimePart, MessagePart, or one of their derivatives.
/// is null. /// -or- /// is null. /// /// is not a subclass of , /// , or . /// -or- /// does not have a constructor that takes /// only a argument. ///
public RegisterMimeType ( string mimeType, Type type ) : void
mimeType string The MIME type.
type System.Type A custom subclass of .
return void

Property Details

Default public_oe static_oe property

The default parser options.
If a ParserOptions is not supplied to MimeParser or other Parse and TryParse methods throughout MimeKit, ParserOptions.Default will be used.
public static ParserOptions,MimeKit Default
return ParserOptions