共用方式為


ServiceQueueEvent.Add 方法

Returns a Service Broker queue event set that is created by adding two specified events together.

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

語法

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

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

參數

傳回值

型別:Microsoft.SqlServer.Management.Smo.ServiceQueueEventSet
A ServiceQueueEventSet object value that specifies a set of Service Broker queue events.

範例

處理 SMO 事件

請參閱

參考

ServiceQueueEvent 類別

Microsoft.SqlServer.Management.Smo 命名空間