Delen via


DatabaseEvent.Addition Operator

Creates a database event set by performing an addition operation on two DatabaseEvent objects.

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

Syntax

'Declaration
Public Shared Operator + ( _
    eventLeft As DatabaseEvent, _
    eventRight As DatabaseEvent _
) As DatabaseEventSet
'Usage
Dim eventLeft As DatabaseEvent
Dim eventRight As DatabaseEvent
Dim returnValue As DatabaseEventSet

returnValue = (eventLeft + eventRight)
public static DatabaseEventSet operator +(
    DatabaseEvent eventLeft,
    DatabaseEvent eventRight
)
public:
static DatabaseEventSet^ operator +(
    DatabaseEvent^ eventLeft, 
    DatabaseEvent^ eventRight
)
static let inline (+)
        eventLeft:DatabaseEvent * 
        eventRight:DatabaseEvent  : DatabaseEventSet
JScript supports the use of overloaded operators, but not the declaration of new ones.

Parameters

Return Value

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