Trigger.MarkForDrop Method (Boolean)


Marks the trigger to be dropped.

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

public void MarkForDrop(
	bool dropOnAlter


Type: System.Boolean

A Boolean value that specifies whether to drop the trigger next time the Alter method is run on the parent object.

If True, the trigger is dropped when the Alter method of the parent object is run.

If False, the trigger is not dropped on alter.

Return to top