Método ViewEventSet.Add (ViewEvent)

Adds a ViewEvent object to the ViewEventSet object.

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

Sintaxe

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

returnValue = instance.Add(anEvent)
public ViewEventSet Add(
    ViewEvent anEvent
)
public:
ViewEventSet^ Add(
    ViewEvent^ anEvent
)
member Add : 
        anEvent:ViewEvent -> ViewEventSet
public function Add(
    anEvent : ViewEvent
) : ViewEventSet

Parâmetros

Valor de retorno

Tipo: Microsoft.SqlServer.Management.Smo.ViewEventSet
A ViewEventSet object that contains the added ViewEvent object.

Exemplos

Manipulando eventos SMO

Consulte também

Referência

ViewEventSet Classe

Sobrecarregado Add

Namespace Microsoft.SqlServer.Management.Smo