Share via


IUpdateServerConfiguration.GetEnabledUpdateLanguages()

Retrieves a collection of the language codes that are enabled on the WSUS server.

public StringCollection GetEnabledUpdateLanguages();
Public Function GetEnabledUpdateLanguages() As StringCollection
Implements IUpdateServerConfiguration.GetEnabledUpdateLanguages

Parameters

This method has no parameters.

Return Value

Collection of the language codes that are enabled on the WSUS server.

Remarks

The language codes follow the format that is 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.

Note that WSUS stores the language codes in lowercase, so if you use StringCollection.Contains to determine if the collection contains a specific language code, you must specify the language code in lowercase (Contains performs a case-sensitive comparison).

The collection contains a snapshot of the languages that are enabled at the time you retrieved the IUpdateServerConfiguration instance. It is possible for the list of enabled languages to be updated after you retrieve the instance.

To enable language codes, call IUpdateServerConfiguration.SetEnabledUpdateLanguages. If you call GetEnabledUpdateLanguages after calling SetEnabledUpdateLanguages, the collection that GetEnabledUpdateLanguages returns will not reflect your changes.

For a list of language codes that WSUS supports, call IUpdateServerConfiguration.SupportedUpdateLanguages.

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.SetEnabledUpdateLanguages
IUpdateServerConfiguration.SupportedUpdateLanguages