Windows Dev Center

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.

XmlLanguage.GetEquivalentCulture Method

Returns the appropriate equivalent CultureInfo for this XmlLanguage, if and only if such a CultureInfo is registered for the IetfLanguageTag value of this XmlLanguage

Namespace:  System.Windows.Markup
Assembly:  PresentationCore (in PresentationCore.dll)

public CultureInfo GetEquivalentCulture()

Return Value

Type: System.Globalization.CultureInfo
A CultureInfo that can be used for localization-globalization API calls that take that type as an argument.

ExceptionCondition
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

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft