Click or drag to resize
MimeKit

ParserOptions Class

Parser options as used by MimeParser as well as various Parse and TryParse methods in MimeKit.
Inheritance Hierarchy
SystemObject
  MimeKitParserOptions

Namespace: MimeKit
Assembly: MimeKit (in MimeKit.dll) Version: 4.7.1
Syntax
C#
public class ParserOptions

The ParserOptions type exposes the following members.

Constructors
 NameDescription
Public methodParserOptions Initialize a new instance of the ParserOptions class.
Top
Properties
 NameDescription
Public propertyAddressParserComplianceMode Get or set the compliance mode that should be used when parsing rfc822 addresses.
Public propertyAllowAddressesWithoutDomain Get or set whether the rfc822 address parser should allow addresses without a domain.
Public propertyAllowUnquotedCommasInAddresses Get or set whether the rfc822 address parser should ignore unquoted commas in address names.
Public propertyCharsetEncoding Get or set the charset encoding to use as a fallback for 8bit headers.
Public propertyMaxAddressGroupDepth Get or set the maximum address group depth the parser should accept.
Public propertyMaxMimeDepth Get or set the maximum MIME nesting depth the parser should accept.
Public propertyParameterComplianceMode Get or set the compliance mode that should be used when parsing Content-Type and Content-Disposition parameters.
Public propertyRespectContentLength Get or set a value indicating whether the Content-Length value should be respected when parsing mbox streams.
Public propertyRfc2047ComplianceMode Get or set the compliance mode that should be used when decoding rfc2047 encoded words.
Top
Methods
 NameDescription
Public methodClone Clone an instance of ParserOptions.
Public methodEquals
(Inherited from Object)
Protected methodFinalize
(Inherited from Object)
Public methodGetHashCode
(Inherited from Object)
Public methodGetType
(Inherited from Object)
Protected methodMemberwiseClone
(Inherited from Object)
Public methodRegisterMimeType Register a MimeEntity subclass for the specified mime-type.
Public methodToString
(Inherited from Object)
Top
Fields
 NameDescription
Public fieldStatic memberDefault The default parser options.
Top
Remarks
ParserOptions allows you to change and/or override default parsing options used by methods such as Load(ParserOptions, Stream, CancellationToken) and others.
See Also