ServerDdlTriggerEventSet.Add 方法 (ServerDdlTriggerEvent)
Returns a set of server DDL events after adding a new server DDL event to the set of events.
命名空间: Microsoft.SqlServer.Management.Smo
程序集: Microsoft.SqlServer.SqlEnum(在 Microsoft.SqlServer.SqlEnum.dll 中)
语法
声明
Public Function Add ( _
anEvent As ServerDdlTriggerEvent _
) As ServerDdlTriggerEventSet
用法
Dim instance As ServerDdlTriggerEventSet
Dim anEvent As ServerDdlTriggerEvent
Dim returnValue As ServerDdlTriggerEventSet
returnValue = instance.Add(anEvent)
public ServerDdlTriggerEventSet Add(
ServerDdlTriggerEvent anEvent
)
public:
ServerDdlTriggerEventSet^ Add(
ServerDdlTriggerEvent^ anEvent
)
member Add :
anEvent:ServerDdlTriggerEvent -> ServerDdlTriggerEventSet
public function Add(
anEvent : ServerDdlTriggerEvent
) : ServerDdlTriggerEventSet
参数
- anEvent
类型:Microsoft.SqlServer.Management.Smo.ServerDdlTriggerEvent
A ServerDdlTriggerEvent object that specifies the new event.
返回值
类型:Microsoft.SqlServer.Management.Smo.ServerDdlTriggerEventSet
A ServerDdlTriggerEventSet that represents the event set.
示例
请参阅
参考
Microsoft.SqlServer.Management.Smo 命名空间