Compartir a través de


Add Método (ServerEvent)

Returns a server event set after adding a new server event to the referenced event set.

Espacio de nombres:  Microsoft.SqlServer.Management.Smo
Ensamblado:  Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)

Sintaxis

'Declaración
Public Function Add ( _
    anEvent As ServerEvent _
) As ServerEventSet
'Uso
Dim instance As ServerEventSet
Dim anEvent As ServerEvent
Dim returnValue As ServerEventSet

returnValue = instance.Add(anEvent)
public ServerEventSet Add(
    ServerEvent anEvent
)
public:
ServerEventSet^ Add(
    ServerEvent^ anEvent
)
member Add : 
        anEvent:ServerEvent -> ServerEventSet 
public function Add(
    anEvent : ServerEvent
) : ServerEventSet

Parámetros

Valor devuelto

Tipo: Microsoft.SqlServer.Management.Smo. . :: . .ServerEventSet
A ServerEventSet object value that contains the new ServerEvent object class.