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 命名空间