共用方式為


Addition 運算子

命名空間:  Microsoft.SqlServer.Management.Smo
組件:  Microsoft.SqlServer.SqlEnum (在 Microsoft.SqlServer.SqlEnum.dll 中)

語法

'宣告
Public Shared Operator + ( _
    eventLeft As DatabaseDdlTriggerEvent, _
    eventRight As DatabaseDdlTriggerEvent _
) As DatabaseDdlTriggerEventSet
'用途
Dim eventLeft As DatabaseDdlTriggerEvent
Dim eventRight As DatabaseDdlTriggerEvent
Dim returnValue As DatabaseDdlTriggerEventSet

returnValue = (eventLeft + eventRight)
public static DatabaseDdlTriggerEventSet operator +(
    DatabaseDdlTriggerEvent eventLeft,
    DatabaseDdlTriggerEvent eventRight
)
public:
static DatabaseDdlTriggerEventSet^ operator +(
    DatabaseDdlTriggerEvent^ eventLeft, 
    DatabaseDdlTriggerEvent^ eventRight
)
static let inline (+)
        eventLeft:DatabaseDdlTriggerEvent * 
        eventRight:DatabaseDdlTriggerEvent  : DatabaseDdlTriggerEventSet
JScript 支援多載運算子的使用,但不支援新運算子的宣告。