SqlAssemblyEventSet.Add 方法 (SqlAssemblyEventSet, SqlAssemblyEvent)
Returns an SQL assembly event set after adding a new SQL assembly event to the specified event set.
命名空间: Microsoft.SqlServer.Management.Smo
程序集: Microsoft.SqlServer.Smo(在 Microsoft.SqlServer.Smo.dll 中)
语法
声明
Public Shared Function Add ( _
eventSet As SqlAssemblyEventSet, _
anEvent As SqlAssemblyEvent _
) As SqlAssemblyEventSet
用法
Dim eventSet As SqlAssemblyEventSet
Dim anEvent As SqlAssemblyEvent
Dim returnValue As SqlAssemblyEventSet
returnValue = SqlAssemblyEventSet.Add(eventSet, _
anEvent)
public static SqlAssemblyEventSet Add(
SqlAssemblyEventSet eventSet,
SqlAssemblyEvent anEvent
)
public:
static SqlAssemblyEventSet^ Add(
SqlAssemblyEventSet^ eventSet,
SqlAssemblyEvent^ anEvent
)
static member Add :
eventSet:SqlAssemblyEventSet *
anEvent:SqlAssemblyEvent -> SqlAssemblyEventSet
public static function Add(
eventSet : SqlAssemblyEventSet,
anEvent : SqlAssemblyEvent
) : SqlAssemblyEventSet
参数
- eventSet
类型:Microsoft.SqlServer.Management.Smo.SqlAssemblyEventSet
An SqlAssemblyEventSet object to which the SqlAssemblyEvent event object is added.
- anEvent
类型:Microsoft.SqlServer.Management.Smo.SqlAssemblyEvent
An SqlAssemblyEvent object that is added to the SqlAssemblyEventSet object.
返回值
类型:Microsoft.SqlServer.Management.Smo.SqlAssemblyEventSet
An SqlAssemblyEventSet object that contains the added SqlAssemblyEvent object.