SubscriptionEventCollection.Add Method (ISubscriptionEvent)
Applies To: Windows Server Update Services
Adds a subscription event to the end of the collection.
Namespace: Microsoft.UpdateServices.Administration
Assembly: Microsoft.UpdateServices.Administration (in Microsoft.UpdateServices.Administration.dll)
Syntax
public int Add(
ISubscriptionEvent value
)
public:
int Add(
ISubscriptionEvent^ value
)
member Add :
value:ISubscriptionEvent -> int
Public Function Add (
value As ISubscriptionEvent
) As Integer
Parameters
value
Type: Microsoft.UpdateServices.Administration.ISubscriptionEventAn ISubscriptionEvent of the subscription event to add.
Return Value
Type: System.Int32
Zero-based index at which the subscription event was added to the collection.
Exceptions
Exception
Condition
The subscription event already exists in the collection.
value cannot be null.
See Also
Add Overload
SubscriptionEventCollection Class
Microsoft.UpdateServices.Administration Namespace
Return to top