Delen via


ObjectEventSet.Add Method (ObjectEvent)

Adds an ObjectEvent object to the ObjectEventSet object.

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

Syntax

'Declaration
Public Function Add ( _
    anEvent As ObjectEvent _
) As ObjectEventSet
'Usage
Dim instance As ObjectEventSet
Dim anEvent As ObjectEvent
Dim returnValue As ObjectEventSet

returnValue = instance.Add(anEvent)
public ObjectEventSet Add(
    ObjectEvent anEvent
)
public:
ObjectEventSet^ Add(
    ObjectEvent^ anEvent
)
member Add : 
        anEvent:ObjectEvent -> ObjectEventSet 
public function Add(
    anEvent : ObjectEvent
) : ObjectEventSet

Parameters

Return Value

Type: Microsoft.SqlServer.Management.Smo.ObjectEventSet
An ObjectEventSet object that contains the added ObjectEvent object.