共用方式為


DatabaseEvent.Add 方法

Returns the database event set that was created by adding two database events together.

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

語法

'宣告
Public Shared Function Add ( _
    eventLeft As DatabaseEvent, _
    eventRight As DatabaseEvent _
) As DatabaseEventSet
'用途
Dim eventLeft As DatabaseEvent 
Dim eventRight As DatabaseEvent 
Dim returnValue As DatabaseEventSet 

returnValue = DatabaseEvent.Add(eventLeft, _
    eventRight)
public static DatabaseEventSet Add(
    DatabaseEvent eventLeft,
    DatabaseEvent eventRight
)
public:
static DatabaseEventSet^ Add(
    DatabaseEvent^ eventLeft, 
    DatabaseEvent^ eventRight
)
static member Add : 
        eventLeft:DatabaseEvent * 
        eventRight:DatabaseEvent -> DatabaseEventSet
public static function Add(
    eventLeft : DatabaseEvent, 
    eventRight : DatabaseEvent
) : DatabaseEventSet

參數

傳回值

型別:Microsoft.SqlServer.Management.Smo.DatabaseEventSet
A DatabaseEventSet object value that specifies a set of database events that are created by adding two database events.

範例

處理 SMO 事件

請參閱

參考

DatabaseEvent 類別

Microsoft.SqlServer.Management.Smo 命名空間