ObjectEventSet.Add 方法 (ObjectEventSet, ObjectEvent)
Adds an ObjectEvent object to a ObjectEventSet.
命名空间: Microsoft.SqlServer.Management.Smo
程序集: Microsoft.SqlServer.Smo(在 Microsoft.SqlServer.Smo.dll 中)
语法
声明
Public Shared Function Add ( _
eventSet As ObjectEventSet, _
anEvent As ObjectEvent _
) As ObjectEventSet
用法
Dim eventSet As ObjectEventSet
Dim anEvent As ObjectEvent
Dim returnValue As ObjectEventSet
returnValue = ObjectEventSet.Add(eventSet, _
anEvent)
public static ObjectEventSet Add(
ObjectEventSet eventSet,
ObjectEvent anEvent
)
public:
static ObjectEventSet^ Add(
ObjectEventSet^ eventSet,
ObjectEvent^ anEvent
)
static member Add :
eventSet:ObjectEventSet *
anEvent:ObjectEvent -> ObjectEventSet
public static function Add(
eventSet : ObjectEventSet,
anEvent : ObjectEvent
) : ObjectEventSet
参数
- eventSet
类型:Microsoft.SqlServer.Management.Smo.ObjectEventSet
ObjectEventSet that will have the Object Event added.
- anEvent
类型:Microsoft.SqlServer.Management.Smo.ObjectEvent
ObjectEvent to be added.
返回值
类型:Microsoft.SqlServer.Management.Smo.ObjectEventSet
An ObjectEventSet object that contains the added ObjectEvent object.