共用方式為


IAutomaticUpdateApprovalRule Interface

 

Applies To: Windows Server Update Services

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 update classifications. To get this interface, call the CreateInstallApprovalRule. If you want to apply this automatic approval rule to updates that were synchronized earlier, use the ApplyRule method. The rule applies only to new updates, not to new revisions of an update. Any changes made to this automatic approval rule will not be saved to the database until you call the Save method.

Namespace:   Microsoft.UpdateServices.Administration
Assembly:  Microsoft.UpdateServices.Administration (in Microsoft.UpdateServices.Administration.dll)

Syntax

public interface IAutomaticUpdateApprovalRule
public interface class IAutomaticUpdateApprovalRule
type IAutomaticUpdateApprovalRule = interface end
Public Interface IAutomaticUpdateApprovalRule

Properties

Name Description
System_CAPS_pubproperty Action

Gets the type of action that the rule performs.

System_CAPS_pubproperty CanSetDeadline

Gets a value indicating if the server that this rule is associated with supports the Deadline property being set.

System_CAPS_pubproperty Deadline

Gets or sets an AutomaticUpdateApprovalDeadline to be applied to any updates to which this rule applies.

System_CAPS_pubproperty Enabled

Gets or sets whether the automatic approval rule is enabled.

System_CAPS_pubproperty Id

Gets the ID of the rule.

System_CAPS_pubproperty Name

Gets or sets the name of the rule.

Methods

Name Description
System_CAPS_pubmethod ApplyRule()

Applies the defined approval rule against the existing updates on the WSUS server. All updates will be approved if they are not already approved and if they are not declined.

System_CAPS_pubmethod GetCategories()

Gets the categories of updates that will be approved automatically by this rule.

System_CAPS_pubmethod GetComputerTargetGroups()

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

System_CAPS_pubmethod GetUpdateClassifications()

Gets the update classifications for which you want to create approvals automatically.

System_CAPS_pubmethod Save()

Saves changes to the automatic approval rule settings.

System_CAPS_pubmethod SetCategories(UpdateCategoryCollection)

Sets the categories of updates that will be approved automatically by this rule.

System_CAPS_pubmethod SetComputerTargetGroups(ComputerTargetGroupCollection)

Sets the computer groups to which this automatic approval rule applies.

System_CAPS_pubmethod SetUpdateClassifications(UpdateClassificationCollection)

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

See Also

Microsoft.UpdateServices.Administration Namespace

Return to top