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

CodePagesEncodingProvider::GetEncoding Method (Int32)

.NET Framework (current version)

Returns the encoding associated with the specified code page identifier.

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

public:
virtual Encoding^ GetEncoding(
	int codepage
) override

Parameters

codepage
Type: System::Int32

The code page identifier of the requested encoding.

Return Value

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

Notes to Callers

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

.NET Framework

Supported in: 4.6
Show:
© 2017 Microsoft