语言

NativeActivity<TResult>.CanInduceIdle 属性

定义

获取或设置一个值,该值指示活动是否可能导致工作流处于空闲状态。

protected:
 virtual property bool CanInduceIdle { bool get(); };
protected virtual bool CanInduceIdle { get; }
member this.CanInduceIdle : bool
Protected Overridable ReadOnly Property CanInduceIdle As Boolean

属性值

如果活动可能导致工作流处于空闲状态,则为 。 此值默认为 false 。

示例

下面的代码示例演示如何在继承自 NativeActivity<TResult>的类中使用 CanInduceIdle。

// indicate to the runtime that this activity can go idle
protected override bool CanInduceIdle
{
    get { return true; }
}

适用于