次の方法で共有


IUpdateServerConfiguration.SetEnabledUpdateLanguages Method (StringCollection)

 

Applies To: Windows Server Update Services

Enables updates for the specified languages.

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

Syntax

void SetEnabledUpdateLanguages(
    StringCollection enabledUpdateLanguages
)
void SetEnabledUpdateLanguages(
    StringCollection^ enabledUpdateLanguages
)
abstract SetEnabledUpdateLanguages : 
        enabledUpdateLanguages:StringCollection -> unit
Sub SetEnabledUpdateLanguages (
    enabledUpdateLanguages As StringCollection
)

Parameters

  • enabledUpdateLanguages
    Type: System.Collections.Specialized.StringCollection

    Collection of language codes to enable for updates. Language codes that are not included in the collection are disabled. You must specify the language code strings in lowercase.

Exceptions

Exception

Condition

ArgumentException

One of the language code strings in the collection is not valid. For a list of valid language codes, see SupportedUpdateLanguages.

ArgumentNullException

enabledUpdateLanguages cannot be null.

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.

For a list of language codes that WSUS supports, call SupportedUpdateLanguages. The language codes that you specify must match the language codes that WSUS supports.

WSUS ignores the specified languages if AllUpdateLanguagesEnabled is true.

See Also

IUpdateServerConfiguration Interface
Microsoft.UpdateServices.Administration Namespace

Return to top