Partager via


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)

Syntax

public string DefaultUILanguage { get; set; }
public:
property String^ DefaultUILanguage {
    String^ get();
    void set(String^ value);
}
member DefaultUILanguage : string with get, set
Public Property DefaultUILanguage As String

Property Value

Type: System.String

Locale of the operating system.

Remarks

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.

See Also

OSInfo Class
Microsoft.UpdateServices.Administration Namespace

Return to top