AutomaticUpdateApprovalRuleCollection.Insert Method (Int32, IAutomaticUpdateApprovalRule)
Applies To: Windows Server Update Services
Inserts an IAutomaticUpdateApprovalRule into the AutomaticUpdateApprovalRuleCollection at the specified index.
Namespace: Microsoft.UpdateServices.Administration
Assembly: Microsoft.UpdateServices.Administration (in Microsoft.UpdateServices.Administration.dll)
Syntax
public void Insert(
int index,
IAutomaticUpdateApprovalRule value
)
public:
void Insert(
int index,
IAutomaticUpdateApprovalRule^ value
)
member Insert :
index:int *
value:IAutomaticUpdateApprovalRule -> unit
Public Sub Insert (
index As Integer,
value As IAutomaticUpdateApprovalRule
)
Parameters
index
Type: System.Int32The zero-based index at which value is inserted.
value
Type: Microsoft.UpdateServices.Administration.IAutomaticUpdateApprovalRuleThe IAutomaticUpdateApprovalRule to insert.
Exceptions
Exception
Condition
value is a null reference (Nothing in Visual Basic).
index is less than zero
-or-
index is equal or greater than the number of elements in the collection.
value already exists in the collection.
See Also
Insert Overload
AutomaticUpdateApprovalRuleCollection Class
Microsoft.UpdateServices.Administration Namespace
Return to top