SuspendRequired 属性

Gets or sets a Boolean that indicates whether tasks should suspend when they encounter a breakpoint.

命名空间:  Microsoft.SqlServer.Dts.Tasks.ActiveXScriptTask
程序集:  Microsoft.SqlServer.ActiveXScriptTask(在 Microsoft.SqlServer.ActiveXScriptTask.dll 中)

语法

声明
Public Property SuspendRequired As Boolean
    Get
    Set
用法
Dim instance As ActiveXScriptTask
Dim value As Boolean

value = instance.SuspendRequired

instance.SuspendRequired = value
public bool SuspendRequired { get; set; }
public:
virtual property bool SuspendRequired {
    bool get () sealed;
    void set (bool value) sealed;
}
abstract SuspendRequired : bool with get, set
override SuspendRequired : bool with get, set
final function get SuspendRequired () : boolean
final function set SuspendRequired (value : boolean)

属性值

类型:System. . :: . .Boolean
true indicates that the task suspends. false indicates that the task does not suspend.

实现

IDTSSuspend. . :: . .SuspendRequired

注释

When the run-time engine receives an OnBreakpointHit event from a task, it calls the SuspendExecution method for each executing task, notifying the task to pause execution.

Because there may be a significant delay between the time a task first receives a suspend call and the time it can actually suspends, the SuspendRequired property is set to indicate if a suspend action is still required. If this property is set to false, the task can immediately return from the suspend call.

重要说明重要提示

下一版本的 Microsoft SQL Server 将删除该功能。请不要在新的开发工作中使用该功能,并尽快修改当前还在使用该功能的应用程序。