CultureNotFoundException.InvalidCultureId Property

.NET Framework 4.6 and 4.5

Gets the culture identifier that cannot be found.

Namespace:  System.Globalization
Assembly:  mscorlib (in mscorlib.dll)

public virtual Nullable<int> InvalidCultureId { get; }

Property Value

Type: System.Nullable<Int32>
The invalid culture identifier.

If the calling code attempted to instantiate or retrieve a CultureInfo object by using an invalid culture identifier, the Value property of the Nullable<T> object returned by the InvalidCultureId property contains the invalid identifier. Otherwise, its HasValue property is false.

.NET Framework

Supported in: 4.6, 4.5, 4

.NET Framework Client Profile

Supported in: 4
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2015 Microsoft