System.Text.EncodingInfo.Name Property

Gets the name registered with the Internet Assigned Numbers Authority (IANA) for the encoding.

Syntax

public string Name { get; }

Value

Documentation for this section has not yet been entered.

Remarks

This property defines the name that is appropriate for passing to Encoding.GetEncoding(string). This name is the same as the name represented by the Encoding.WebName property. When its value is the name of a standard, the actual implementation of the encoding may not conform in full to that standard. Your applications should use EncodingInfo.DisplayName for a human-readable name.

The Encoding.GetEncodings method gets a complete list of supported encodings, uniquely distinguished by code page. If your application retrieves encodings using the EncodingInfo.Name property, note that some duplicate encodings are retrieved. For more about handling these duplicates, see the description of Encoding.GetEncodings.

Requirements

Namespace: System.Text
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0