ServerEventSet.Add ServerEventSet.Add ServerEventSet.Add Method

Definition

Returns a server event set after adding a new server event to the event set.

Overloads

Add(ServerEvent) Add(ServerEvent) Add(ServerEvent)

Returns a server event set after adding a new server event to the referenced event set.

Add(ServerEventSet, ServerEvent) Add(ServerEventSet, ServerEvent) Add(ServerEventSet, ServerEvent)

Returns a server event set after adding a new server event to the specified event set.

Examples

Handling SMO Events

Add(ServerEvent) Add(ServerEvent) Add(ServerEvent)

Returns a server event set after adding a new server event to the referenced event set.

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

A ServerEvent object that specifies the event that is to be added to the event set.

Returns

A ServerEventSet object value that contains the new ServerEvent object class.

Examples

Handling SMO Events

Add(ServerEventSet, ServerEvent) Add(ServerEventSet, ServerEvent) Add(ServerEventSet, ServerEvent)

Returns a server event set after adding a new server event to the specified event set.

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

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

anEvent
ServerEvent ServerEvent ServerEvent

A ServerEvent object that specifies the event to be added to the event set.

Returns

A ServerEventSet object value that contains the new ServerEvent object class.

Examples

Handling SMO Events

Applies to