ScriptTask::SuspendRequired Property
Gets or sets a Boolean indicating whether a task should suspend execution when the task encounters a breakpoint. This value is set by the run-time engine for tasks and containers when a breakpoint is encountered.
Assembly: Microsoft.SqlServer.ScriptTask (in Microsoft.SqlServer.ScriptTask.dll)
public: property bool SuspendRequired { virtual bool get() sealed; virtual void set(bool value) sealed; }
Property Value
Type: System::Booleantrue if the task suspends execution when it encounters a breakpoint; otherwise, false.
Implements
IDTSSuspend::SuspendRequiredThis property is not set in code. The property is set by the runtime for tasks and containers when a breakpoint is encountered.
However, if you write a multithreaded custom task that exposes breakpoints, you must provide code for this method, which is inherited from the IDTSSuspend class for multithreaded objects. If your task is single threaded, which means that the implementation of Execute in your custom task does not start new threads, you do not have to implement this interface. For more information about writing custom tasks, see Developing a Custom Task.
The following code example shows how to override the SuspendRequired property for a custom task.