Subtract 方法
Returns a trace event set after subtracting a trace event from an existing event set.
命名空間: Microsoft.SqlServer.Management.Smo
組件: Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)
語法
'宣告
Public Shared Function Subtract ( _
eventSet As ServerTraceEventSet, _
anEvent As ServerTraceEvent _
) As ServerTraceEventSet
'用途
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
參數
- eventSet
型別:Microsoft.SqlServer.Management.Smo. . :: . .ServerTraceEventSet
A ServerTraceEventSet object that specifies the server trace event set.
- anEvent
型別:Microsoft.SqlServer.Management.Smo. . :: . .ServerTraceEvent
A ServerTraceEvent object that specifies the event.
傳回值
型別:Microsoft.SqlServer.Management.Smo. . :: . .ServerTraceEventSet
A ServerTraceEventSet that represents the new event set.
備註
只有 Microsoft .NET Framework 2.0 版支援此命名空間、類別或成員。