IUpdateServerConfiguration.SetEnabledUpdateLanguages(StringCollection)
Enables updates for the specified languages.
public void SetEnabledUpdateLanguages(StringCollectionenabledUpdateLanguages);
Public Sub SetEnabledUpdateLanguages( _
ByVal enabledUpdateLanguages As StringCollection _
)
Implements IUpdateServerConfiguration.SetEnabledUpdateLanguages
Parameters
- enabledUpdateLanguages
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.
Return Value
This method does not return a value.
Exceptions
Exception type | Condition |
---|---|
System.ArgumentException | One of the language code strings in the collection is not valid. For a list of valid language codes, see IUpdateServerConfiguration.SupportedUpdateLanguages. |
System.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 IUpdateServerConfiguration.SupportedUpdateLanguages. The language codes that you specify must match the language codes that WSUS supports.
WSUS ignores the specified languages if IUpdateServerConfiguration.AllUpdateLanguagesEnabled is true.
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.AllUpdateLanguagesEnabled
IUpdateServerConfiguration.SupportedUpdateLanguages