ServerDdlTriggerEventSet.Add 方法 (ServerDdlTriggerEventSet, ServerDdlTriggerEvent)
Returns a set of server DDL events after adding a new server DDL event to the specified set of events.
命名空間: Microsoft.SqlServer.Management.Smo
組件: Microsoft.SqlServer.SqlEnum (在 Microsoft.SqlServer.SqlEnum.dll 中)
語法
'宣告
Public Shared Function Add ( _
eventSet As ServerDdlTriggerEventSet, _
anEvent As ServerDdlTriggerEvent _
) As ServerDdlTriggerEventSet
'用途
Dim eventSet As ServerDdlTriggerEventSet
Dim anEvent As ServerDdlTriggerEvent
Dim returnValue As ServerDdlTriggerEventSet
returnValue = ServerDdlTriggerEventSet.Add(eventSet, _
anEvent)
public static ServerDdlTriggerEventSet Add(
ServerDdlTriggerEventSet eventSet,
ServerDdlTriggerEvent anEvent
)
public:
static ServerDdlTriggerEventSet^ Add(
ServerDdlTriggerEventSet^ eventSet,
ServerDdlTriggerEvent^ anEvent
)
static member Add :
eventSet:ServerDdlTriggerEventSet *
anEvent:ServerDdlTriggerEvent -> ServerDdlTriggerEventSet
public static function Add(
eventSet : ServerDdlTriggerEventSet,
anEvent : ServerDdlTriggerEvent
) : ServerDdlTriggerEventSet
參數
- eventSet
型別:Microsoft.SqlServer.Management.Smo.ServerDdlTriggerEventSet
A ServerDdlTriggerEventSet object that specifies the event.
- 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 命名空間