Share via


OSInfo.DefaultUILanguage

Locale of the operating system.

public String DefaultUILanguage {get; set;}
Public Property DefaultUILanguage As String

Property Value

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, respectively. 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 IUpdateServerConfiguration.SupportedUpdateLanguages to ensure that WSUS supports the locale before passing the locale string to the WSUS methods. For an example, see IUpdateServer.PreferredCulture.

Requirements

Server Requires Windows Server 2003 or Windows 2000 Server SP4 and later.
Namespace

Defined in Microsoft.UpdateServices.Administration.

Assembly

Requires Microsoft.UpdateServices.Administration (in Microsoft.UpdateServices.Administration.dll).

.NET Framework

Requires .NET Framework 1.1.

See Also

IUpdateServerConfiguration.SupportedUpdateLanguages