Edit

Share via


XmlLanguage.GetEquivalentCulture Method

Definition

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

public:
 System::Globalization::CultureInfo ^ GetEquivalentCulture();
public System.Globalization.CultureInfo GetEquivalentCulture ();
member this.GetEquivalentCulture : unit -> System.Globalization.CultureInfo
Public Function GetEquivalentCulture () As CultureInfo

Returns

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

Exceptions

No registered CultureInfo for the provided XmlLanguage exists, as determined by a call to GetCultureInfoByIetfLanguageTag(String).

Remarks

If no equivalent CultureInfo can be produced, this method raises an exception. If you do not wish to handle exceptions, call GetSpecificCulture instead.

Applies to

See also