Export (0) Print
Expand All

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)

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.

ExceptionCondition
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, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0, 2.0

Community Additions

ADD
Show:
© 2015 Microsoft