Subtraction 運算子
Creates a server trace event set by performing a subtraction operation on a ServerTraceEvent object and a ServerTraceEventSet object.
命名空間: Microsoft.SqlServer.Management.Smo
組件: Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)
語法
'宣告
Public Shared Operator - ( _
eventSet As ServerTraceEventSet, _
anEvent As ServerTraceEvent _
) As ServerTraceEventSet
'用途
Dim eventSet As ServerTraceEventSet
Dim anEvent As ServerTraceEvent
Dim returnValue As ServerTraceEventSet
returnValue = (eventSet - anEvent)
public static ServerTraceEventSet operator -(
ServerTraceEventSet eventSet,
ServerTraceEvent anEvent
)
public:
static ServerTraceEventSet^ operator -(
ServerTraceEventSet^ eventSet,
ServerTraceEvent^ anEvent
)
static let inline (-)
eventSet:ServerTraceEventSet *
anEvent:ServerTraceEvent : ServerTraceEventSet
JScript 支援多載運算子的使用,但不支援新運算子的宣告。
參數
- 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 server trace events.
傳回值
型別:Microsoft.SqlServer.Management.Smo. . :: . .ServerTraceEventSet
A ServerTraceEventSet object value that specifies a set of server trace events.
備註
只有 Microsoft .NET Framework 2.0 版支援此命名空間、類別或成員。