CultureInfoGetCultureInfo Method (Int32) |
Retrieves a cached, read-only instance of a culture by using the specified culture identifier.
Namespace: System.GlobalizationAssembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax public static CultureInfo GetCultureInfo(
int culture
)
Parameters
- culture
- Type: SystemInt32
A locale identifier (LCID).
Return Value
Type:
CultureInfoA read-only instance of the specified culture.
Exceptions Exception | Condition |
---|
ArgumentOutOfRangeException | culture is less than zero. |
CultureNotFoundException | culture specifies a culture that is not supported. |
See Also