Windows apps
Collapse the table of content
Expand the table of content

CodePagesEncodingProvider::GetEncoding Method (String)

.NET Framework (current version)

Returns the encoding with the specified name.

Namespace:  System.Text
Assembly:  System.Text.Encoding.CodePages (in System.Text.Encoding.CodePages.dll)

public:
virtual Encoding^ GetEncoding(
	String^ name
) override

Parameters

name
Type: System::String

The name of the requested encoding.

Return Value

Type: System.Text::Encoding
The encoding that is associated with the specified name, or nullptr if this EncodingProvider cannot return a valid encoding that corresponds to name.

Notes to Callers

This method is called by the Encoding::GetEncoding(String) method. You should not call it directly from user code.

.NET Framework

Supported in: 4.6
Show:
© 2017 Microsoft