共用方式為


ServiceQueueEventSet.Add 方法 (ServiceQueueEventSet, ServiceQueueEvent)

Returns a Service Broker queue event set after adding a new queue event to the specified set.

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

語法

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

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

參數

傳回值

型別:Microsoft.SqlServer.Management.Smo.ServiceQueueEventSet
A ServiceQueueEventSet that represents the event set after the new event is added.

範例

處理 SMO 事件

請參閱

參考

ServiceQueueEventSet 類別

Add 多載

Microsoft.SqlServer.Management.Smo 命名空間