Método ServerTraceEventSet.Add (ServerTraceEvent)
Returns a trace event set after adding a trace event to an existing event set.
Namespace: Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.Smo (em Microsoft.SqlServer.Smo.dll)
Sintaxe
'Declaração
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 de retorno
Tipo: Microsoft.SqlServer.Management.Smo.ServerTraceEventSet
A ServerTraceEventSet that represents the new event set.
Comentários
Só há suporte para esse namespace, classe ou membro na versão 2.0 do Microsoft .NET Framework.
Exemplos
Consulte também
Referência
Namespace Microsoft.SqlServer.Management.Smo