Partager via


Opérateur Subtraction

Creates a server event set by performing a subtraction operation on a ServerEvent object and a ServerEventSet 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 ServerEventSet, _
    anEvent As ServerEvent _
) As ServerEventSet
'Utilisation
Dim eventSet As ServerEventSet
Dim anEvent As ServerEvent
Dim returnValue As ServerEventSet

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