NativeActivity<TResult>::CanInduceIdle Property
.NET Framework (current version)
Gets or sets a value that indicates whether the activity can cause the workflow to become idle.
Assembly: System.Activities (in System.Activities.dll)
Property Value
Type: System::Booleantrue if the activity can cause the workflow to become idle, otherwise false. This value is false by default.
The following code sample demonstrates using CanInduceIdle in a class that inherits from NativeActivity<TResult>. This example is from the Wait For Input Activity [WF Samples] sample.
// indicate to the runtime that this activity can go idle protected override bool CanInduceIdle { get { return true; } }
.NET Framework
Available since 4.0
Available since 4.0
Show: