Compartilhar via


SubscriptionEventCollection.Insert Method (Int32, ISubscriptionEvent)

 

Applies To: Windows Server Update Services

Inserts a subscription event into the collection.

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

Syntax

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

Parameters

  • index
    Type: System.Int32

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

Exceptions

Exception

Condition

ArgumentException

The subscription event already exists in this collection.

ArgumentNullException

value cannot be null.

ArgumentOutOfRangeException

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

See Also

Insert Overload
SubscriptionEventCollection Class
Microsoft.UpdateServices.Administration Namespace

Return to top