This documentation is archived and is not being maintained.
PageAsyncTask Constructor (BeginEventHandler, EndEventHandler, EndEventHandler, Object)
Visual Studio 2010
Initializes a new instance of the PageAsyncTask class using the default value for executing in parallel.
Assembly: System.Web (in System.Web.dll)
public:
PageAsyncTask(
BeginEventHandler^ beginHandler,
EndEventHandler^ endHandler,
EndEventHandler^ timeoutHandler,
Object^ state
)
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.
| Exception | Condition |
|---|---|
| ArgumentNullException | The beginHandler parameter or endHandler parameter is not specified. |
This implementation of the constructor sets the ExecuteInParallel property to false so the asynchronous task is not processed in parallel with other tasks on the page.
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: