Méthode ServerEvent.Add
Returns a server event set after adding a new server event to the event set.
Espace de noms : Microsoft.SqlServer.Management.Smo
Assembly : Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)
Syntaxe
'Déclaration
Public Shared Function Add ( _
eventLeft As ServerEvent, _
eventRight As ServerEvent _
) As ServerEventSet
'Utilisation
Dim eventLeft As ServerEvent
Dim eventRight As ServerEvent
Dim returnValue As ServerEventSet
returnValue = ServerEvent.Add(eventLeft, _
eventRight)
public static ServerEventSet Add(
ServerEvent eventLeft,
ServerEvent eventRight
)
public:
static ServerEventSet^ Add(
ServerEvent^ eventLeft,
ServerEvent^ eventRight
)
static member Add :
eventLeft:ServerEvent *
eventRight:ServerEvent -> ServerEventSet
public static function Add(
eventLeft : ServerEvent,
eventRight : ServerEvent
) : ServerEventSet
Paramètres
- eventLeft
Type : Microsoft.SqlServer.Management.Smo.ServerEvent
A ServerEvent object that specifies the server events.
- eventRight
Type : Microsoft.SqlServer.Management.Smo.ServerEvent
A ServerEvent object that specifies the server events.
Valeur de retour
Type : Microsoft.SqlServer.Management.Smo.ServerEventSet
A ServerEventSet object value that specifies a set of server events.