AutomaticUpdateApprovalRuleCollection.Add Method (IAutomaticUpdateApprovalRule)
Applies To: Windows Server Update Services
Adds an IAutomaticUpdateApprovalRule to the end of the AutomaticUpdateApprovalRuleCollection.
Namespace: Microsoft.UpdateServices.Administration
Assembly: Microsoft.UpdateServices.Administration (in Microsoft.UpdateServices.Administration.dll)
Syntax
public int Add(
IAutomaticUpdateApprovalRule value
)
public:
int Add(
IAutomaticUpdateApprovalRule^ value
)
member Add :
value:IAutomaticUpdateApprovalRule -> int
Public Function Add (
value As IAutomaticUpdateApprovalRule
) As Integer
Parameters
value
Type: Microsoft.UpdateServices.Administration.IAutomaticUpdateApprovalRuleThe IAutomaticUpdateApprovalRule to add to the end of the AutomaticUpdateApprovalRuleCollection.
Return Value
Type: System.Int32
The zero-based index at which the new element is indexed.
Exceptions
Exception
Condition
value is a null reference (Nothing in Visual Basic).
value already exists in the collection.
See Also
Add Overload
AutomaticUpdateApprovalRuleCollection Class
Microsoft.UpdateServices.Administration Namespace
Return to top