Export (0) Print
Expand All

Encoding Constructor (Int32)

.NET Framework 1.1

Initializes a new instance of the Encoding class.

[Visual Basic]
Protected Sub New( _
   ByVal codePage As Integer _
)
[C#]
protected Encoding(
   int codePage
);
[C++]
protected: Encoding(
   int codePage
);
[JScript]
protected function Encoding(
   codePage : int
);

Parameters

codePage
A code page value that corresponds to the preferred encoding.

Exceptions

Exception Type Condition
ArgumentOutOfRangeException codePage is less than zero.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework

See Also

Encoding Class | Encoding Members | System.Text Namespace | Encoding Constructor Overload List | CodePage | GetEncoding

Show:
© 2014 Microsoft