WsusCollection.OnInsert Method (Int32, Object)
Applies To: Windows Server Update Services
Provides overridden validation functionality which checks that we do not insert duplicates into our collection.
Namespace: Microsoft.UpdateServices.Administration
Assembly: Microsoft.UpdateServices.Administration (in Microsoft.UpdateServices.Administration.dll)
Syntax
protected override void OnInsert(
int index,
object value
)
protected:
virtual void OnInsert(
int index,
Object^ value
) override
override OnInsert :
index:int *
value:Object -> unit
Protected Overrides Sub OnInsert (
index As Integer,
value As Object
)
Parameters
index
Type: System.Int32The index at which the object will be inserted.
value
Type: System.ObjectThe object to be added
Exceptions
Exception
Condition
value is null.
value already exists in the collection.
See Also
WsusCollection Class
Microsoft.UpdateServices.Administration Namespace
Return to top