SqlAssemblyEventSet.Add 方法 (SqlAssemblyEvent)
Returns an SQL assembly event set after adding a new SQL assembly event to the referenced event set.
命名空間: Microsoft.SqlServer.Management.Smo
組件: Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)
語法
'宣告
Public Function Add ( _
anEvent As SqlAssemblyEvent _
) As SqlAssemblyEventSet
'用途
Dim instance As SqlAssemblyEventSet
Dim anEvent As SqlAssemblyEvent
Dim returnValue As SqlAssemblyEventSet
returnValue = instance.Add(anEvent)
public SqlAssemblyEventSet Add(
SqlAssemblyEvent anEvent
)
public:
SqlAssemblyEventSet^ Add(
SqlAssemblyEvent^ anEvent
)
member Add :
anEvent:SqlAssemblyEvent -> SqlAssemblyEventSet
public function Add(
anEvent : SqlAssemblyEvent
) : SqlAssemblyEventSet
參數
- anEvent
型別:Microsoft.SqlServer.Management.Smo.SqlAssemblyEvent
A SqlAssemblyEvent object that is added to the SqlAssemblyEventSet object.
傳回值
型別:Microsoft.SqlServer.Management.Smo.SqlAssemblyEventSet
A SqlAssemblyEventSet object that contains the added SqlAssemblyEvent object.