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.Int32Zero-based index at which to insert the subscription event into the collection.
value
Type: Microsoft.UpdateServices.Administration.ISubscriptionEventAn ISubscriptionEvent of the subscription event to insert into the collection.
Exceptions
Exception
Condition
The subscription event already exists in this collection.
value cannot be null.
index cannot be less than zero or greater than SubscriptionEventCollection.Count.
See Also
Insert Overload
SubscriptionEventCollection Class
Microsoft.UpdateServices.Administration Namespace
Return to top