Share via


IAutomaticUpdateApprovalRule

Use this interface to define and enable an automatic approval rule. The approval rule creates approvals for newly synchronized updates that fall within one of the specified classification of updates. The rule applies only to new updates, not to new revisions of an update.

If the approval applies to the same target group, install approvals will override scan approvals.

To retrieve this interface, call the IUpdateServer.GetInstallApprovalRule or the IUpdateServer.GetScanApprovalRule.

The IAutomaticUpdateApprovalRule interface is derived from the System.Object class.

Public Methods

The IAutomaticUpdateApprovalRule interface has the following public methods.

Method Description
Equals(Object)

Determines if the specified Object is equal to the current Object.

GetComputerTargetGroups()

Retrieves the target groups to which this automatic approval rule applies.

GetHashCode()

Serves as a hash function for a particular type. GetHashCode is suitable for use in hashing algorithms and data structures like a hash table.

GetType()

Retrieves the Type of the current instance.

GetUpdateClassifications()

Retrieves the classifications of updates for which you want to automatically create approvals.

Save()

Saves changes to the automatic approval rule settings.

SetComputerTargetGroups(ComputerTargetGroupCollection)

Specifies the target groups to which this automatic approval rule applies.

SetUpdateClassifications(UpdateClassificationCollection)

Specifies the classification of updates for which you want to automatically create approvals.

ToString()

Retrieves a String that represents the current Object.

Public Properties

The IAutomaticUpdateApprovalRule interface has the following public properties.

Property Description
Action

Retrieves the type of action that the rule performs.

Enabled

Retrieves or sets a value to enable or disable the automatic approval rule.

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.