IUpdateServerConfiguration.Save Method (Boolean)
Applies To: Windows Server Update Services
Saves the server configuration information, specifying whether or not to throw an exception if the configuration has changed after it was loaded.
Namespace: Microsoft.UpdateServices.Administration
Assembly: Microsoft.UpdateServices.Administration (in Microsoft.UpdateServices.Administration.dll)
Syntax
void Save(
bool detectConfigChange
)
void Save(
bool detectConfigChange
)
abstract Save :
detectConfigChange:bool -> unit
Sub Save (
detectConfigChange As Boolean
)
Parameters
detectConfigChange
Type: System.BooleanIf true, throw an InvalidOperationException if the configuration has changed after it was loaded. If false, do not throw the exception.
Exceptions
Exception
Condition
ProxyName is empty, and is required.
--or--
ProxyUserName is empty, and is required.
--or--
UpstreamWsusServerName is empty, and is required.
--or--
HostBinariesOnMicrosoftUpdate is true, but AllUpdateLanguagesEnabled is false.
--or--
SyncFromMicrosoftUpdate has been set to true when IsReplicaServer is true.
--or--
AllUpdateLanguagesEnabled is false and GetEnabledUpdateLanguages returns an empty collection
--or--
Server synchronization is currently running
--or--
The server is processing a previous configuration save
--or--
SyncFromMicrosoftUpdate has been set to true and the server is in replica mode
--or---
The server configuration changed after the configuration object was loaded.
Remarks
Saving the configuration will raise a ConfigurationChanged event.
This operation requires WSUS Administrator privileges.
See Also
SaveāOverload
IUpdateServerConfiguration Interface
Microsoft.UpdateServices.Administration Namespace
Return to top