ServerDdlTriggerEventSet.Subtract(ServerDdlTriggerEventSet, ServerDdlTriggerEvent) ServerDdlTriggerEventSet.Subtract(ServerDdlTriggerEventSet, ServerDdlTriggerEvent) ServerDdlTriggerEventSet.Subtract(ServerDdlTriggerEventSet, ServerDdlTriggerEvent) Method

Definition

Returns a set of server DDL trigger events after subtracting a DDL trigger event from the specified set of event set.

public:
 static Microsoft::SqlServer::Management::Smo::ServerDdlTriggerEventSet ^ Subtract(Microsoft::SqlServer::Management::Smo::ServerDdlTriggerEventSet ^ eventSet, Microsoft::SqlServer::Management::Smo::ServerDdlTriggerEvent ^ anEvent);
public static Microsoft.SqlServer.Management.Smo.ServerDdlTriggerEventSet Subtract (Microsoft.SqlServer.Management.Smo.ServerDdlTriggerEventSet eventSet, Microsoft.SqlServer.Management.Smo.ServerDdlTriggerEvent anEvent);
Public Shared Function Subtract (eventSet As ServerDdlTriggerEventSet, anEvent As ServerDdlTriggerEvent) As ServerDdlTriggerEventSet
Parameters
eventSet
ServerDdlTriggerEventSet ServerDdlTriggerEventSet ServerDdlTriggerEventSet

A ServerDdlTriggerEventSet object that specifies the server DDL trigger event set.

anEvent
ServerDdlTriggerEvent ServerDdlTriggerEvent ServerDdlTriggerEvent

A ServerDdlTriggerEvent object that specifies the server DDL trigger events.

Returns

A ServerDdlTriggerEventSet object value that specifies a set of server DDL trigger events after the specified event has been subtracted.

Examples

Handling SMO Events

Applies to