Add méthode (ServerTraceEvent)
Returns a trace event set after adding a trace event to an existing event set.
Espace de noms : Microsoft.SqlServer.Management.Smo
Assembly : Microsoft.SqlServer.Smo (dans Microsoft.SqlServer.Smo.dll)
Syntaxe
'Déclaration
Public Function Add ( _
anEvent As ServerTraceEvent _
) As ServerTraceEventSet
'Utilisation
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
Paramètres
- anEvent
Type : Microsoft.SqlServer.Management.Smo. . :: . .ServerTraceEvent
A ServerTraceEvent object that specifies the event.
Valeur de retour
Type : Microsoft.SqlServer.Management.Smo. . :: . .ServerTraceEventSet
A ServerTraceEventSet that represents the new event set.
Notes
Cet espace de noms, cette classe ou ce membre est pris en charge uniquement par la version 2.0 de Microsoft .NET Framework.