ServerEvent.Add(ServerEvent, ServerEvent) ServerEvent.Add(ServerEvent, ServerEvent) ServerEvent.Add(ServerEvent, ServerEvent) Method

Definition

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

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

A ServerEvent object that specifies the server events.

eventRight
ServerEvent ServerEvent ServerEvent

A ServerEvent object that specifies the server events.

Returns

A ServerEventSet object value that specifies a set of server events.

Examples

Handling SMO Events

Applies to