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: 2.3.0
Syntax
C#
public class ParserOptions

The ParserOptions type exposes the following members.

Constructors
  NameDescription
Public methodParserOptions
Initializes a new instance of the ParserOptions class.
Top
Properties
  NameDescription
Public propertyAddressParserComplianceMode
Gets or sets the compliance mode that should be used when parsing rfc822 addresses.
Public propertyAllowAddressesWithoutDomain
Gets or sets whether the rfc822 address parser should allow addresses without a domain.
Public propertyAllowUnquotedCommasInAddresses
Gets or sets whether the rfc822 address parser should ignore unquoted commas in address names.
Public propertyCharsetEncoding
Gets or sets the charset encoding to use as a fallback for 8bit headers.
Public propertyMaxAddressGroupDepth
Gets or sets the maximum address group depth the parser should accept.
Public propertyParameterComplianceMode
Gets or sets the compliance mode that should be used when parsing Content-Type and Content-Disposition parameters.
Public propertyRespectContentLength
Gets or sets a value indicating whether the Content-Length value should be respected when parsing mbox streams.
Public propertyRfc2047ComplianceMode
Gets or sets the compliance mode that should be used when decoding rfc2047 encoded words.
Top
Methods
  NameDescription
Public methodClone
Clones an instance of ParserOptions.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodRegisterMimeType
Registers the MimeEntity subclass for the specified mime-type.
Public methodToString
Returns a string that represents the current object.
(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