Add 方法 (ViewEventSet, ViewEvent)

Adds an event to the event set.

命名空间:  Microsoft.SqlServer.Management.Smo
程序集:  Microsoft.SqlServer.Smo(在 Microsoft.SqlServer.Smo.dll 中)

语法

声明
Public Shared Function Add ( _
    eventSet As ViewEventSet, _
    anEvent As ViewEvent _
) As ViewEventSet
用法
Dim eventSet As ViewEventSet
Dim anEvent As ViewEvent
Dim returnValue As ViewEventSet

returnValue = ViewEventSet.Add(eventSet, _
    anEvent)
public static ViewEventSet Add(
    ViewEventSet eventSet,
    ViewEvent anEvent
)
public:
static ViewEventSet^ Add(
    ViewEventSet^ eventSet, 
    ViewEvent^ anEvent
)
static member Add : 
        eventSet:ViewEventSet * 
        anEvent:ViewEvent -> ViewEventSet 
public static function Add(
    eventSet : ViewEventSet, 
    anEvent : ViewEvent
) : ViewEventSet