PageAsyncTask Constructor (BeginEventHandler, EndEventHandler, EndEventHandler, Object)

 

Initializes a new instance of the PageAsyncTask class using the default value for executing in parallel.

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

new : 
        beginHandler:BeginEventHandler *
        endHandler:EndEventHandler *
        timeoutHandler:EndEventHandler *
        state:Object -> PageAsyncTask

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.

.NET Framework
Available since 2.0
Return to top
Show: