Partilhar via


Método ViewEventSet.Add (ViewEventSet, ViewEvent)

Adds an event to the event set.

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

Sintaxe

'Declaração
Public Shared Function Add ( _
    eventSet As ViewEventSet, _
    anEvent As ViewEvent _
) As ViewEventSet
'Uso
Dim eventSet As ViewEventSet 
Dim anEvent As ViewEvent 
Dim returnValue As ViewEventSet 

returnValue = ViewEventSet.Add(eventSet, _
    anEvent)
public static ViewEventSet Add(
    ViewEventSet eventSet,
    ViewEvent anEvent
)
public:
static ViewEventSet^ Add(
    ViewEventSet^ eventSet, 
    ViewEvent^ anEvent
)
static member Add : 
        eventSet:ViewEventSet * 
        anEvent:ViewEvent -> ViewEventSet
public static function Add(
    eventSet : ViewEventSet, 
    anEvent : ViewEvent
) : ViewEventSet

Parâmetros

Valor de retorno

Tipo: Microsoft.SqlServer.Management.Smo.ViewEventSet
ViewEventSet

Exemplos

Manipulando eventos SMO

Consulte também

Referência

ViewEventSet Classe

Sobrecarregado Add

Namespace Microsoft.SqlServer.Management.Smo