Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

ObjectEventSet.Subtract Method (ObjectEventSet, ObjectEvent)

 

Applies To: SQL Server 2016 Preview

Subtracts a ObjectEvent from a T:Microsoft.SqlServer.Management.Smo.ObjectEventSet.

Namespace:   Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

public static ObjectEventSet Subtract(
	ObjectEventSet eventSet,
	ObjectEvent anEvent
)

Parameters

eventSet
Type: Microsoft.SqlServer.Management.Smo.ObjectEventSet

ObjectEventSet that will have the Object Event deleted.

anEvent
Type: Microsoft.SqlServer.Management.Smo.ObjectEvent

ObjectEvent to be deleted.

Return Value

Type: Microsoft.SqlServer.Management.Smo.ObjectEventSet

An ObjectEventSet object that contains the subtracted ObjectEvent object.

Legacy Code Example

Return to top
Show:
© 2015 Microsoft