Partager via


Subtraction opérateur

Creates a service queue event set by performing a subtraction operation on a ServiceQueueEvent object and a ServiceQueueEventSet object.

Espace de noms :  Microsoft.SqlServer.Management.Smo
Assembly :  Microsoft.SqlServer.Smo (dans Microsoft.SqlServer.Smo.dll)

Syntaxe

'Déclaration
Public Shared Operator - ( _
    eventSet As ServiceQueueEventSet, _
    anEvent As ServiceQueueEvent _
) As ServiceQueueEventSet
'Utilisation
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 prend en charge l'utilisation d'opérateurs surchargés, mais pas la déclaration de nouveaux opérateurs.

Paramètres

Valeur de retour

Type : Microsoft.SqlServer.Management.Smo. . :: . .ServiceQueueEventSet
A ServiceQueueEventSet object value that specifies a set of service queue events.