Addition 运算符

Creates a server trace event set by performing an addition operation on two server trace event objects.

命名空间:  Microsoft.SqlServer.Management.Smo
程序集:  Microsoft.SqlServer.Smo(在 Microsoft.SqlServer.Smo.dll 中)

语法

声明
Public Shared Operator + ( _
    eventLeft As ServerTraceEvent, _
    eventRight As ServerTraceEvent _
) As ServerTraceEventSet
用法
Dim eventLeft As ServerTraceEvent
Dim eventRight As ServerTraceEvent
Dim returnValue As ServerTraceEventSet

returnValue = (eventLeft + eventRight)
public static ServerTraceEventSet operator +(
    ServerTraceEvent eventLeft,
    ServerTraceEvent eventRight
)
public:
static ServerTraceEventSet^ operator +(
    ServerTraceEvent^ eventLeft, 
    ServerTraceEvent^ eventRight
)
static let inline (+)
        eventLeft:ServerTraceEvent * 
        eventRight:ServerTraceEvent  : ServerTraceEventSet
JScript 支持使用重载的运算符,但不支持声明新重载运算符。

注释

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