CultureInfo.ToString 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 a string containing the name of the current CultureInfo in the format languagecode2-country/regioncode2.
public:
override System::String ^ ToString();
public override string ToString ();
override this.ToString : unit -> string
Public Overrides Function ToString () As String
Returns
A string containing the name of the current CultureInfo.
Remarks
This method overrides Object.ToString. It returns a normalized version of the culture name that is passed to the CultureInfo(String) or CultureInfo(String, Boolean) constructor or to the CreateSpecificCulture or GetCultureInfo(String) method. It normalizes the result string by converting characters in languagecode2 to lowercase and converting characters in country/regioncode2 to uppercase if necessary.
Predefined culture names on Windows systems are listed in the Language tag column in the list of language/region names supported by Windows. Culture names follow the standard defined by BCP 47.
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