Share via


IUpdateServer.GetScanApprovalRule()

Retrieves the approval rule that is used to automatically scan the target computers to determine if the update is applicable.

public IAutomaticUpdateApprovalRule GetScanApprovalRule();
Public Function GetScanApprovalRule() As IAutomaticUpdateApprovalRule
Implements IUpdateServer.GetScanApprovalRule

Parameters

This method has no parameters.

Return Values

An IAutomaticUpdateApprovalRule that you can use to view or modify the rule that is used to determine if the client automatically scans the target computer to determine if the update is applicable.

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.

See Also

IUpdateServer.GetInstallApprovalRule