C# Класс MimeKit.ParserOptions

Parser options as used by MimeParser as well as various Parse and TryParse methods in MimeKit.
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
Default ParserOptions

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
CreateEntity ( MimeKit.ContentType contentType, IList
headers, bool toplevel ) : MimeKit.MimeEntity
GetConstructor ( TypeInfo type, Type argTypes ) : ConstructorInfo
IsEncoded ( IList
headers ) : bool

Описание методов

Clone() публичный метод

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
Результат ParserOptions

ParserOptions() публичный метод

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
Результат System

RegisterMimeType() публичный метод

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 .
Результат void

Описание свойств

Default публичное статическое свойство

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
Результат ParserOptions