Partager via


Opérateur Subtraction

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

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