次の方法で共有


Subtraction 演算子

ServiceQueueEvent オブジェクトと ServiceQueueEventSet オブジェクトの減算演算を実行することによって、サービス キュー イベントのセットを作成します。

名前空間:  Microsoft.SqlServer.Management.Smo
アセンブリ:  Microsoft.SqlServer.Smo (Microsoft.SqlServer.Smo.dll)

構文

'宣言
Public Shared Operator - ( _
    eventSet As ServiceQueueEventSet, _
    anEvent As ServiceQueueEvent _
) As ServiceQueueEventSet
'使用
Dim eventSet As ServiceQueueEventSet
Dim anEvent As ServiceQueueEvent
Dim returnValue As ServiceQueueEventSet

returnValue = (eventSet - anEvent)
public static ServiceQueueEventSet operator -(
    ServiceQueueEventSet eventSet,
    ServiceQueueEvent anEvent
)
public:
static ServiceQueueEventSet^ operator -(
    ServiceQueueEventSet^ eventSet, 
    ServiceQueueEvent^ anEvent
)
static let inline (-)
        eventSet:ServiceQueueEventSet * 
        anEvent:ServiceQueueEvent  : ServiceQueueEventSet
JScript はオーバーロードされた演算子の使用をサポートしていますが、新規の宣言はサポートしていません。

パラメーター

戻り値

型: Microsoft.SqlServer.Management.Smo. . :: . .ServiceQueueEventSet
サービス キュー イベントのセットを示す ServiceQueueEventSet オブジェクトの値です。