OSInfo.DefaultUILanguage Property

 

Applies To: Windows Server Update Services

Locale of the operating system.

Namespace:   Microsoft.UpdateServices.Administration
Assembly:  Microsoft.UpdateServices.Administration (in Microsoft.UpdateServices.Administration.dll)

public string DefaultUILanguage { get; set; }

Property Value

Type: System.String

Locale of the operating system.

The locale string that the client provides is of the form language code-country/region code, for example, "en-us." However, WSUS does not fully support RFC1766; WSUS supports a subset of the language and culture codes specified in ISO 639 and ISO 3166. For example, WSUS supports only "en" for English, not "en-us."

If you pass the client's locale string to WSUS methods, the methods may fail. You should always use SupportedUpdateLanguages to ensure that WSUS supports the locale before passing the locale string to the WSUS methods. For an example, see PreferredCulture.

Return to top

Community Additions

ADD
Show: