IUpdateServerConfiguration.SupportedUpdateLanguages Property
Namespace: Microsoft.UpdateServices.Administration
Assembly: Microsoft.UpdateServices.Administration (in Microsoft.UpdateServices.Administration.dll)
The following example shows how to iterate through the list of languages WSUS supports. The server variable that is used in the example is an instance of IUpdateServer (for information on retrieving an IUpdateServer instance, see Using WSUS).
The language codes follow the format specified in RFC1766. For example, "en" for English or "pt-br" for Portuguese (Brazil). WSUS supports a subset of the language codes that are specified in ISO 639 and culture codes that are specified in ISO 3166.
You can use this collection to ensure that the PreferredCulture value you specify is valid or to provide a list of localized languages that WSUS supports.
Note that WSUS stores the language codes in lowercase, so if you use the StringCollection.Contains method to determine whether the collection contains a specific language code, you must specify the language code in lowercase (the Contains method performs a case-sensitive comparison).
The collection contains the "ja-nec" language code. This code is for internal use. Do not try to use it to create a CultureInfo object (the call will fail).
Development Platforms
Target Platforms
Windows Server 2008, Windows Server 2003, Windows Server 2008 R2