SupportedUpdateLanguages Property

IUpdateServerConfiguration.SupportedUpdateLanguages Property

Gets the languages that WSUS supports.

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

StringCollection SupportedUpdateLanguages { get; }
/** @property */
StringCollection get_SupportedUpdateLanguages ()

function get SupportedUpdateLanguages () : StringCollection

Property Value

Collection of language codes that WSUS supports.

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).

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
© 2016 Microsoft