ObjectEventSet.Add ObjectEventSet.Add ObjectEventSet.Add Method

Definition

Adds a ObjectEvent object to a ObjectEventSet

Overloads

Add(ObjectEvent) Add(ObjectEvent) Add(ObjectEvent)

Adds an ObjectEvent object to the ObjectEventSet object.

Add(ObjectEventSet, ObjectEvent) Add(ObjectEventSet, ObjectEvent) Add(ObjectEventSet, ObjectEvent)

Adds an ObjectEvent object to a ObjectEventSet.

Add(ObjectEvent) Add(ObjectEvent) Add(ObjectEvent)

Adds an ObjectEvent object to the ObjectEventSet object.

public:
 Microsoft::SqlServer::Management::Smo::ObjectEventSet ^ Add(Microsoft::SqlServer::Management::Smo::ObjectEvent ^ anEvent);
public Microsoft.SqlServer.Management.Smo.ObjectEventSet Add (Microsoft.SqlServer.Management.Smo.ObjectEvent anEvent);
Public Function Add (anEvent As ObjectEvent) As ObjectEventSet
Parameters
anEvent
ObjectEvent ObjectEvent ObjectEvent

An ObjectEvent object that is added to the ObjectEventSet object.

Returns

An ObjectEventSet object that contains the added ObjectEvent object.

Examples

Handling SMO Events

Add(ObjectEventSet, ObjectEvent) Add(ObjectEventSet, ObjectEvent) Add(ObjectEventSet, ObjectEvent)

Adds an ObjectEvent object to a ObjectEventSet.

public:
 static Microsoft::SqlServer::Management::Smo::ObjectEventSet ^ Add(Microsoft::SqlServer::Management::Smo::ObjectEventSet ^ eventSet, Microsoft::SqlServer::Management::Smo::ObjectEvent ^ anEvent);
public static Microsoft.SqlServer.Management.Smo.ObjectEventSet Add (Microsoft.SqlServer.Management.Smo.ObjectEventSet eventSet, Microsoft.SqlServer.Management.Smo.ObjectEvent anEvent);
Public Shared Function Add (eventSet As ObjectEventSet, anEvent As ObjectEvent) As ObjectEventSet
Parameters
eventSet
ObjectEventSet ObjectEventSet ObjectEventSet

ObjectEventSet that will have the Object Event added.

Returns

An ObjectEventSet object that contains the added ObjectEvent object.

Examples

Handling SMO Events

Applies to