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.

Namespace:   System.Activities
Assembly:  System.Activities (in System.Activities.dll)

protected:
property bool CanInduceIdle {
	virtual bool get();
}

Property Value

Type: System::Boolean

true 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
Return to top
Show: