語言

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

屬性值

true 如果該活動會導致工作流程進入閒置狀態,否則 false。 這個數值是 false 預設值。

範例

以下程式碼範例示範在繼承自 NativeActivity<TResult>的類別中使用 CanInduceIdle 。

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

適用於