UpdateCollection.Insert Method (Int32, IUpdate)
Applies To: Windows Server Update Services
Inserts an update into the collection.
Namespace: Microsoft.UpdateServices.Administration
Assembly: Microsoft.UpdateServices.Administration (in Microsoft.UpdateServices.Administration.dll)
Syntax
public void Insert(
int index,
IUpdate value
)
public:
void Insert(
int index,
IUpdate^ value
)
member Insert :
index:int *
value:IUpdate -> unit
Public Sub Insert (
index As Integer,
value As IUpdate
)
Parameters
index
Type: System.Int32Zero-based index at which to insert the update into the collection.
value
Type: Microsoft.UpdateServices.Administration.IUpdateAn IUpdate of the update to insert into the collection.
Exceptions
Exception
Condition
The update already exists in this collection.
value cannot be null.
index cannot be less than zero or greater than UpdateCollection.Count.
See Also
Insert Overload
UpdateCollection Class
Microsoft.UpdateServices.Administration Namespace
Return to top