Méthode ServerTraceEventSet.Subtract
Returns a trace event set after subtracting a trace event from an existing event set.
Espace de noms : Microsoft.SqlServer.Management.Smo
Assembly : Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)
Syntaxe
'Déclaration
Public Shared Function Subtract ( _
eventSet As ServerTraceEventSet, _
anEvent As ServerTraceEvent _
) As ServerTraceEventSet
'Utilisation
Dim eventSet As ServerTraceEventSet
Dim anEvent As ServerTraceEvent
Dim returnValue As ServerTraceEventSet
returnValue = ServerTraceEventSet.Subtract(eventSet, _
anEvent)
public static ServerTraceEventSet Subtract(
ServerTraceEventSet eventSet,
ServerTraceEvent anEvent
)
public:
static ServerTraceEventSet^ Subtract(
ServerTraceEventSet^ eventSet,
ServerTraceEvent^ anEvent
)
static member Subtract :
eventSet:ServerTraceEventSet *
anEvent:ServerTraceEvent -> ServerTraceEventSet
public static function Subtract(
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.
Exemples
Voir aussi
Référence
Espace de noms Microsoft.SqlServer.Management.Smo