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
Available since 4.0
Return to top
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2015 Microsoft