IUpdateServerConfiguration.Save()
Saves your copy of the WSUS configuration information to the database.
public void Save();
Public Sub Save()
Implements IUpdateServerConfiguration.Save
Parameters
This method has no parameters.
Return Value
This method does not return a value.
Exceptions
Exception type | Condition |
---|---|
WsusInvalidDataException | You can receive this exception because of any of the following reasons:
|
System.InvalidOperationException | You can receive this exception because of any of the following reasons:
|
Remarks
When you call IUpdateServer.GetConfiguration, you will receive a copy of the configuration information that is currently saved in the WSUS database. Changes that you make to the configuration information are made only to your local copy. To make your changes visible to other application and to the WSUS server, call Save.
WSUS contains configuration information from the last application to save changes.
Changes to some configuration settings can cause WSUS to start a background process, which can prevent other processes from saving configuration settings (the process can run for up to three minutes). If you call Save while the background process is running, WSUS throws the System.InvalidOperationException exception. You can implement retry logic to handle this exception or call IUpdateServerConfiguration.GetUpdateServerConfigurationState before calling Save to determine if you can save configuration settings.
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. |