XmlLanguage.GetEquivalentCulture Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: I hele 2024 udfaser vi GitHub-problemer som feedbackmekanisme for indhold og erstatter det med et nyt feedbacksystem. Du kan få flere oplysninger under:Indsend og få vist feedback om