Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Retrieves the approval rule that is used to automatically download and install updates on target computers.
public IAutomaticUpdateApprovalRule GetInstallApprovalRule()();
Public Function GetInstallApprovalRule()() As IAutomaticUpdateApprovalRule
Implements IUpdateServer.GetInstallApprovalRule()
Parameters
This method has no parameters.
Return Value
An IAutomaticUpdateApprovalRule that you can use to view or modify the rule that is used to determine if the client automatically installs the update.
Exceptions
| Exception type | Condition |
|---|---|
| System.InvalidOperationException | Unable to retrieve the rule from the database. |
| WsusObjectNotFoundException | Unable to find the rule in the database. |
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. |