Add Método (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 Function Add ( _
anEvent As ServerTraceEvent _
) As ServerTraceEventSet
'Uso
Dim instance As ServerTraceEventSet
Dim anEvent As ServerTraceEvent
Dim returnValue As ServerTraceEventSet
returnValue = instance.Add(anEvent)
public ServerTraceEventSet Add(
ServerTraceEvent anEvent
)
public:
ServerTraceEventSet^ Add(
ServerTraceEvent^ anEvent
)
member Add :
anEvent:ServerTraceEvent -> ServerTraceEventSet
public function Add(
anEvent : ServerTraceEvent
) : ServerTraceEventSet
Parámetros
- anEvent
Tipo: Microsoft.SqlServer.Management.Smo. . :: . .ServerTraceEvent
A ServerTraceEvent object that specifies the event.
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.