مشاركة عبر


ServerEventSet.Subtraction Operator

Creates a server event set by performing a subtraction operation on a ServerEvent object and a ServerEventSet object.

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Syntax

'Declaration
Public Shared Operator - ( _
    eventSet As ServerEventSet, _
    anEvent As ServerEvent _
) As ServerEventSet
'Usage
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 supports the use of overloaded operators, but not the declaration of new ones.

Parameters

Return Value

Type: Microsoft.SqlServer.Management.Smo.ServerEventSet
A ServerEventSet object value that specifies a set of server events.

Examples

Handling SMO Events

See Also

Reference

ServerEventSet Class

Microsoft.SqlServer.Management.Smo Namespace