ServerEventSet.Add Method (ServerEvent)


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

Namespace:   Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

public ServerEventSet Add(
	ServerEvent anEvent


Type: Microsoft.SqlServer.Management.Smo.ServerEvent

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

Return Value

Type: Microsoft.SqlServer.Management.Smo.ServerEventSet

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

Return to top