Partilhar via


Método Add (ObjectEvent)

Adds an ObjectEvent object to the ObjectEventSet object.

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

Sintaxe

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

returnValue = instance.Add(anEvent)
public ObjectEventSet Add(
    ObjectEvent anEvent
)
public:
ObjectEventSet^ Add(
    ObjectEvent^ anEvent
)
member Add : 
        anEvent:ObjectEvent -> ObjectEventSet 
public function Add(
    anEvent : ObjectEvent
) : ObjectEventSet

Parâmetros

Valor de retorno

Tipo: Microsoft.SqlServer.Management.Smo. . :: . .ObjectEventSet
An ObjectEventSet object that contains the added ObjectEvent object.