Click or drag to resize
MimeKit

CharsetFilter(String, String) Constructor

Initialize a new instance of the CharsetFilter class.

Namespace: MimeKit.IO.Filters
Assembly: MimeKit (in MimeKit.dll) Version: 4.3.0
Syntax
C#
public CharsetFilter(
	string sourceEncodingName,
	string targetEncodingName
)

Parameters

sourceEncodingName  String
Source encoding name.
targetEncodingName  String
Target encoding name.
Exceptions
ExceptionCondition
ArgumentNullException

sourceEncodingName is null.

-or-

targetEncodingName is null.

NotSupportedException

The sourceEncodingName is not supported by the system.

-or-

The targetEncodingName is not supported by the system.

Remarks
Creates a new CharsetFilter to convert text from the specified source encoding into the target charset encoding.
See Also