ExecuteInParallel Property

PageAsyncTask::ExecuteInParallel Property

 

Gets a value that indicates whether the task can be processed in parallel with other tasks.

Namespace:   System.Web.UI
Assembly:  System.Web (in System.Web.dll)

public:
property bool ExecuteInParallel {
	bool get();
	private: void set(bool value);
}

Property Value

Type: System::Boolean

true if the task should be processed in parallel with other tasks; otherwise, false.

The ExecuteInParallel property is set in the constructor. When multiple tasks are registered in a page and the ExecuteInParallel property is set to true, then those tasks are processed concurrently. However, if the ExecuteInParallel property is set to false, then those tasks are processed sequentially. For example, if a page contained two asynchronous tasks that each took 5 seconds to complete and ExecuteInParallel is set to true, both tasks will complete in 5 seconds. If ExecuteInParallel is set to false for these same two tasks, then the first task will complete in 5 seconds and the second task will complete 5 seconds after the completion of the first task.

The following code example defines three asynchronous tasks that are each set to be processed in parallel. This example is part of a larger example found in the PageAsyncTask class overview.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 2.0
Return to top
Show:
© 2016 Microsoft