Share via


IUpdateServerConfiguration.GetEnabledUpdateLanguages Method ()

 

Applies To: Windows Server Update Services

Gets the language codes that are enabled on the WSUS server.

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

Syntax

StringCollection GetEnabledUpdateLanguages()
StringCollection^ GetEnabledUpdateLanguages()
abstract GetEnabledUpdateLanguages : unit -> StringCollection
Function GetEnabledUpdateLanguages As StringCollection

Return Value

Type: System.Collections.Specialized.StringCollection

A 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 the culture codes that are specified in ISO 3166.

Note that WSUS stores the language codes in lowercase. 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, since the Contains method performs a case-sensitive comparison).

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

To enable language codes, call 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 SupportedUpdateLanguages.

See Also

IUpdateServerConfiguration Interface
Microsoft.UpdateServices.Administration Namespace

Return to top