This documentation is archived and is not being maintained.
PageAsyncTask Constructor (BeginEventHandler, EndEventHandler, EndEventHandler, Object, Boolean)
Visual Studio 2010
Initializes a new instance of the PageAsyncTask class using the specified value for executing in parallel.
Assembly: System.Web (in System.Web.dll)
public: PageAsyncTask( BeginEventHandler^ beginHandler, EndEventHandler^ endHandler, EndEventHandler^ timeoutHandler, Object^ state, bool executeInParallel )
Parameters
- beginHandler
- Type: System.Web::BeginEventHandler
The handler to call when beginning an asynchronous task.
- endHandler
- Type: System.Web::EndEventHandler
The handler to call when the task is completed successfully within the time-out period.
- timeoutHandler
- Type: System.Web::EndEventHandler
The handler to call when the task is not completed successfully within the time-out period.
- state
- Type: System::Object
The object that represents the state of the task.
- executeInParallel
- Type: System::Boolean
The value that indicates whether the task can be processed in parallel with other tasks.
| Exception | Condition |
|---|---|
| ArgumentNullException | The beginHandler parameter or endHandler parameter is not specified. |
The following code example creates three asynchronous tasks that are processed in parallel to each other. This example is part of a larger example found in the PageAsyncTask class overview.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: