StoredProcedureEventSet.Add StoredProcedureEventSet.Add StoredProcedureEventSet.Add Method

Definition

Returns a set of stored procedure events after adding a new stored procedure event to the event set.

Overloads

Add(StoredProcedureEvent) Add(StoredProcedureEvent) Add(StoredProcedureEvent)

Returns a set of stored procedure events after adding a new stored procedure event to the referenced event set.

Add(StoredProcedureEventSet, StoredProcedureEvent) Add(StoredProcedureEventSet, StoredProcedureEvent) Add(StoredProcedureEventSet, StoredProcedureEvent)

Returns a set of stored procedure events after adding a new stored procedure event to the specified event set.

Examples

Handling SMO Events

Add(StoredProcedureEvent) Add(StoredProcedureEvent) Add(StoredProcedureEvent)

Returns a set of stored procedure events after adding a new stored procedure event to the referenced event set.

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

A StoredProcedureEvent object that is added to the event set.

Returns

A StoredProcedureEventSet object that specifies the stored procedure event set after the new event is added.

Examples

Handling SMO Events

Add(StoredProcedureEventSet, StoredProcedureEvent) Add(StoredProcedureEventSet, StoredProcedureEvent) Add(StoredProcedureEventSet, StoredProcedureEvent)

Returns a set of stored procedure events after adding a new stored procedure event to the specified event set.

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

A StoredProcedureEventSet object that specifies the event set to which the event is added.

anEvent
StoredProcedureEvent StoredProcedureEvent StoredProcedureEvent

A StoredProcedureEvent object that is added to the event set.

Returns

A StoredProcedureEventSet object that specifies the stored procedure event set after the new event is added.

Examples

Handling SMO Events

Applies to