共用方式為


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 版支援此命名空間、類別或成員。