ViewEventSet.Add Method (ViewEvent)
Adds a ViewEvent object to the ViewEventSet object.
Namespace: Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)
Syntax
'Declaration
Public Function Add ( _
anEvent As ViewEvent _
) As ViewEventSet
'Usage
Dim instance As ViewEventSet
Dim anEvent As ViewEvent
Dim returnValue As ViewEventSet
returnValue = instance.Add(anEvent)
public ViewEventSet Add(
ViewEvent anEvent
)
public:
ViewEventSet^ Add(
ViewEvent^ anEvent
)
member Add :
anEvent:ViewEvent -> ViewEventSet
public function Add(
anEvent : ViewEvent
) : ViewEventSet
Parameters
- anEvent
Type: Microsoft.SqlServer.Management.Smo.ViewEvent
A ViewEvent object that is added to the ViewEventSet object.
Return Value
Type: Microsoft.SqlServer.Management.Smo.ViewEventSet
A ViewEventSet object that contains the added ViewEvent object.