CultureInfo..::..GetCultureInfo Method
Retrieves a cached, read-only instance of a culture using the specified culture name.
Namespace:
System.GlobalizationAssembly: Bridge (in Bridge.dll)
Syntax
[NameAttribute] public static CultureInfo GetCultureInfo( string name )
<NameAttribute> _ Public Shared Function GetCultureInfo ( _ name As String _ ) As CultureInfo
[NameAttribute] public: static CultureInfo^ GetCultureInfo( String^ name )
Parameters
- name
- Type: System..::..String
The name of a culture. name is not case-sensitive.
Return Value
A read-only CultureInfo object.Exceptions
Exception | Condition |
---|---|
System..::..ArgumentNullException | name is null. |
System.Globalization..::..CultureNotFoundException | name specifies a culture that is not supported. See the Notes to Callers section for more information. |