Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

OSInfo.DefaultUILanguage Property

Locale of the operating system.

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

public string DefaultUILanguage { get; set; }
/** @property */
public String get_DefaultUILanguage ()

/** @property */
public void set_DefaultUILanguage (String value)

public function get DefaultUILanguage () : String

public function set DefaultUILanguage (value : String)

Property Value

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.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Development Platforms

Target Platforms

Windows Server 2008, Windows Server 2003, Windows Server 2008 R2
© 2015 Microsoft