SQLServer.Executive.Task Object
Cancels a unit of Task property changes previously marked with BeginAlter. All property changes made since calling BeginAlter will not be committed to SQL Server.
Task.CancelAlter
HRESULT pTask->CancelAlter ( );