次の方法で共有


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.Int32

    The index at which the object will be inserted.

Exceptions

Exception

Condition

ArgumentNullException

value is null.

ArgumentException

value already exists in the collection.

See Also

WsusCollection Class
Microsoft.UpdateServices.Administration Namespace

Return to top