Add 方法 (ViewEvent)

Adds a ViewEvent object to the ViewEventSet object.

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

语法

声明
Public Function Add ( _
    anEvent As ViewEvent _
) As ViewEventSet
用法
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

参数

返回值

类型:Microsoft.SqlServer.Management.Smo. . :: . .ViewEventSet
A ViewEventSet object that contains the added ViewEvent object.