WsusCollection.Insert Method (Int32, Object)
Applies To: Windows Server Update Services
Inserts an element into the collection at the specified index.
Namespace: Microsoft.UpdateServices.Administration
Assembly: Microsoft.UpdateServices.Administration (in Microsoft.UpdateServices.Administration.dll)
Syntax
protected void Insert(
int index,
object value
)
protected:
void Insert(
int index,
Object^ value
)
member Insert :
index:int *
value:Object -> unit
Protected Sub Insert (
index As Integer,
value As Object
)
Parameters
index
Type: System.Int32The zero-based index at which value is inserted.
value
Type: System.ObjectThe element to insert.
Exceptions
Exception
Condition
You can receive this exception because of either of the following reasons:
index is less than zero.
index is greater than Count.
array is a null reference (Nothing in Visual Basic).
value already exists in the collection.
See Also
WsusCollection Class
Microsoft.UpdateServices.Administration Namespace
Return to top