CultureNotFoundException.InvalidCultureId Property

.NET Framework (current version)

The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

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