Opérateur Subtraction

Creates a database event set by performing a subtraction operation on a DatabaseEvent object and a DatabaseEventSet object.

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

Syntaxe

'Déclaration
Public Shared Operator - ( _
    eventSet As DatabaseEventSet, _
    anEvent As DatabaseEvent _
) As DatabaseEventSet
'Utilisation
Dim eventSet As DatabaseEventSet
Dim anEvent As DatabaseEvent
Dim returnValue As DatabaseEventSet

returnValue = (eventSet - anEvent)
public static DatabaseEventSet operator -(
    DatabaseEventSet eventSet,
    DatabaseEvent anEvent
)
public:
static DatabaseEventSet^ operator -(
    DatabaseEventSet^ eventSet, 
    DatabaseEvent^ anEvent
)
static let inline (-)
        eventSet:DatabaseEventSet * 
        anEvent:DatabaseEvent  : DatabaseEventSet
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. . :: . .DatabaseEventSet
A DatabaseEventSet object value that specifies a set of database events.