Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

CultureNotFoundException::InvalidCultureId Property

.NET Framework (current version)
 

Gets the culture identifier that cannot be found.

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

public:
property Nullable<int> InvalidCultureId {
	virtual Nullable<int> 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
Show:
© 2017 Microsoft