次の方法で共有


Add メソッド (ServiceQueueEventSet, ServiceQueueEvent)

指定した Service Broker キュー イベント セットに新しいキュー イベントを追加した後、そのイベント セットを返します。

名前空間:  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
新しいイベントが追加された後のイベント セットを表す ServiceQueueEventSet です。