System.Text.Encoding.HeaderName Property

When overridden in a derived class, gets a name for the current encoding that can be used with mail agent header tags.

Syntax

public virtual string HeaderName { get; }

Value

Documentation for this section has not yet been entered.

Remarks

If your application needs an encoding for a header name, it should call Encoding.GetEncoding(string) with the Encoding.HeaderName property. Often the method retrieves a different encoding from the test encoding furnished in the call. Generally only e-mail applications need to retrieve such an encoding.

In some cases, the value of the Encoding.BodyName property corresponds to the international standard that defines that encoding. This does not imply that the actual implementation complies in full with that standard.

Note that Encoding.WebName returns the name to use to describe an encoding. The Encoding.HeaderName property defines a different encoding that might work better for an e-mail application, for example. However, use of the property to define the encoding is not recommended.

Requirements

Namespace: System.Text
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0