DatabaseDdlTriggerEventSet.Add 方法 (DatabaseDdlTriggerEvent)

Returns a set of database DDL trigger events after adding a new event to the event referenced set.

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

语法

声明
Public Function Add ( _
    anEvent As DatabaseDdlTriggerEvent _
) As DatabaseDdlTriggerEventSet
用法
Dim instance As DatabaseDdlTriggerEventSet 
Dim anEvent As DatabaseDdlTriggerEvent 
Dim returnValue As DatabaseDdlTriggerEventSet 

returnValue = instance.Add(anEvent)
public DatabaseDdlTriggerEventSet Add(
    DatabaseDdlTriggerEvent anEvent
)
public:
DatabaseDdlTriggerEventSet^ Add(
    DatabaseDdlTriggerEvent^ anEvent
)
member Add : 
        anEvent:DatabaseDdlTriggerEvent -> DatabaseDdlTriggerEventSet
public function Add(
    anEvent : DatabaseDdlTriggerEvent
) : DatabaseDdlTriggerEventSet

参数

返回值

类型:Microsoft.SqlServer.Management.Smo.DatabaseDdlTriggerEventSet
A DatabaseDdlTriggerEventSet that represents the event set.

示例

处理 SMO 事件

请参阅

参考

DatabaseDdlTriggerEventSet 类

Add 重载

Microsoft.SqlServer.Management.Smo 命名空间