Applies To: Windows Server Update Services
Locale of the operating system.
Assembly: Microsoft.UpdateServices.Administration (in Microsoft.UpdateServices.Administration.dll)
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.