Add méthode (ServerTraceEventSet, 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 Shared Function Add ( _
eventSet As ServerTraceEventSet, _
anEvent As ServerTraceEvent _
) As ServerTraceEventSet
'Utilisation
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
Paramètres
- eventSet
Type : Microsoft.SqlServer.Management.Smo. . :: . .ServerTraceEventSet
A ServerTraceEventSet object that specifies the server trace event set.
- 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.