ObjectEventSet.Addition Operator
Creates an object event set by performing an addition operation on an ObjectEvent object and an ObjectEventSet object.
Namespace: Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)
Syntax
'Declaration
Public Shared Operator + ( _
eventSet As ObjectEventSet, _
anEvent As ObjectEvent _
) As ObjectEventSet
'Usage
Dim eventSet As ObjectEventSet
Dim anEvent As ObjectEvent
Dim returnValue As ObjectEventSet
returnValue = (eventSet + anEvent)
public static ObjectEventSet operator +(
ObjectEventSet eventSet,
ObjectEvent anEvent
)
public:
static ObjectEventSet^ operator +(
ObjectEventSet^ eventSet,
ObjectEvent^ anEvent
)
static let inline (+)
eventSet:ObjectEventSet *
anEvent:ObjectEvent : ObjectEventSet
JScript supports the use of overloaded operators, but not the declaration of new ones.
Parameters
- eventSet
Type: Microsoft.SqlServer.Management.Smo.ObjectEventSet
An ObjectEventSet object that specifies the object event set.
- anEvent
Type: Microsoft.SqlServer.Management.Smo.ObjectEvent
An ObjectEvent object that specifies the object events.
Return Value
Type: Microsoft.SqlServer.Management.Smo.ObjectEventSet
An ObjectEventSet object value that specifies a set of object events.