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 支持使用重载的运算符,但不支持声明新重载运算符。

参数

返回值

类型:Microsoft.SqlServer.Management.Smo. . :: . .ServerTraceEventSet
A ServerTraceEventSet object value that specifies a set of server trace events.

注释

仅 Microsoft .NET Framework 的 2.0 版本支持此命名空间、类或成员。