共用方式為


ViewEventSet.Addition 運算子

Creates a view event set by performing an addition operation on a ViewEvent object and a ViewEventSet object.

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

語法

'宣告
Public Shared Operator + ( _
    eventSet As ViewEventSet, _
    anEvent As ViewEvent _
) As ViewEventSet
'用途
Dim eventSet As ViewEventSet 
Dim anEvent As ViewEvent 
Dim returnValue As ViewEventSet 

returnValue = (eventSet + anEvent)
public static ViewEventSet operator +(
    ViewEventSet eventSet,
    ViewEvent anEvent
)
public:
static ViewEventSet^ operator +(
    ViewEventSet^ eventSet, 
    ViewEvent^ anEvent
)
static let inline(+)
        eventSet:ViewEventSet * 
        anEvent:ViewEvent  : ViewEventSet
JScript 支援多載運算子的使用,但不支援新運算子的宣告。

參數

傳回值

型別:Microsoft.SqlServer.Management.Smo.ViewEventSet
A ViewEventSet object value that specifies a set of view events.

範例

處理 SMO 事件

請參閱

參考

ViewEventSet 類別

Microsoft.SqlServer.Management.Smo 命名空間