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.

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.

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
Return to top
Show:
© 2017 Microsoft