XmlLanguage::GetEquivalentCulture Method ()
.NET Framework (current version)
Returns the appropriate equivalent CultureInfo for this XmlLanguage, if and only if such a CultureInfo is registered for the IetfLanguageTag value of this XmlLanguage
Assembly: PresentationCore (in PresentationCore.dll)
Return Value
Type: System.Globalization::CultureInfo^A CultureInfo that can be used for localization-globalization API calls that take that type as an argument.
| Exception | Condition |
|---|---|
| InvalidOperationException | No registered CultureInfo for the provided XmlLanguage exists, as determined by a call to GetCultureInfoByIetfLanguageTag. |
If no equivalent CultureInfo can be produced, this method raises an exception. If you do not wish to handle exceptions, call GetSpecificCulture instead.
.NET Framework
Available since 3.0
Available since 3.0
Show: