Partager via


UpdateEventCollection.Insert Method (Int32, IUpdateEvent)

 

Applies To: Windows Server Update Services

Inserts an update event into the collection.

Namespace:   Microsoft.UpdateServices.Administration
Assembly:  Microsoft.UpdateServices.Administration (in Microsoft.UpdateServices.Administration.dll)

Syntax

public void Insert(
    int index,
    IUpdateEvent value
)
public:
void Insert(
    int index,
    IUpdateEvent^ value
)
member Insert : 
        index:int *
        value:IUpdateEvent -> unit
Public Sub Insert (
    index As Integer,
    value As IUpdateEvent
)

Parameters

  • index
    Type: System.Int32

    Zero-based index at which to insert the event into the collection.

Exceptions

Exception

Condition

ArgumentException

The event already exists in this collection.

ArgumentNullException

value cannot be null.

ArgumentOutOfRangeException

index cannot be less than zero or greater than UpdateEventCollection.Count.

See Also

Insert Overload
UpdateEventCollection Class
Microsoft.UpdateServices.Administration Namespace

Return to top