DatabaseEventSet.Add Método (DatabaseEventSet, DatabaseEvent)
Returns a set of database events after adding a new database event to the specified event set.
Espacio de nombres: Microsoft.SqlServer.Management.Smo
Ensamblado: Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)
Sintaxis
'Declaración
Public Shared Function Add ( _
eventSet As DatabaseEventSet, _
anEvent As DatabaseEvent _
) As DatabaseEventSet
'Uso
Dim eventSet As DatabaseEventSet
Dim anEvent As DatabaseEvent
Dim returnValue As DatabaseEventSet
returnValue = DatabaseEventSet.Add(eventSet, _
anEvent)
public static DatabaseEventSet Add(
DatabaseEventSet eventSet,
DatabaseEvent anEvent
)
public:
static DatabaseEventSet^ Add(
DatabaseEventSet^ eventSet,
DatabaseEvent^ anEvent
)
static member Add :
eventSet:DatabaseEventSet *
anEvent:DatabaseEvent -> DatabaseEventSet
public static function Add(
eventSet : DatabaseEventSet,
anEvent : DatabaseEvent
) : DatabaseEventSet
Parámetros
- eventSet
Tipo: Microsoft.SqlServer.Management.Smo.DatabaseEventSet
An DatabaseEventSet object that specifies the database event set to which the new event is added.
- anEvent
Tipo: Microsoft.SqlServer.Management.Smo.DatabaseEvent
A DatabaseEvent object that specifies the new event added to the database event set.
Valor devuelto
Tipo: Microsoft.SqlServer.Management.Smo.DatabaseEventSet
A DatabaseEventSet object that contains the new DatabaseEvent object.