Initializes a new instance of the CultureInfo class that most closely corresponds to the specified NLS locale identifier.
[Visual Basic] Overloads Public Sub New( _ ByVal culture As Integer _ ) [C#] public CultureInfo( int culture ); [C++] public: CultureInfo( int culture ); [JScript] public function CultureInfo( culture : int );
Exception Type | Condition |
---|---|
ArgumentException | is thrown if culture is not a supported NLS locale identifier. |
This constructor is provided for ease of integration with NLS-based software.
CultureInfo Class | CultureInfo Members | System.Globalization Namespace | CultureInfo Constructor Overload List