Compartir a través de


Add Método (ServerTraceEventSet, ServerTraceEvent)

Returns a trace event set after adding a trace event to an existing 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 ServerTraceEventSet, _
    anEvent As ServerTraceEvent _
) As ServerTraceEventSet
'Uso
Dim eventSet As ServerTraceEventSet
Dim anEvent As ServerTraceEvent
Dim returnValue As ServerTraceEventSet

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

Parámetros

Valor devuelto

Tipo: Microsoft.SqlServer.Management.Smo. . :: . .ServerTraceEventSet
A ServerTraceEventSet that represents the new event set.

Notas

Este espacio de nombres, clase o miembro solo se admite en la versión 2.0 de Microsoft .NET Framework.