WebPart.RegisterWorkItem method

NOTE: This API is now obsolete.

Keeps track of work being done by an external thread, such as a Web Part that handles its own thread pool.

Namespace:  Microsoft.SharePoint.WebPartPages
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

<ObsoleteAttribute("Use Page.RegisterAsyncTask instead.")> _
Protected Function RegisterWorkItem ( _
	ar As IAsyncResult _
) As Boolean
Dim ar As IAsyncResult
Dim returnValue As Boolean

returnValue = Me.RegisterWorkItem(ar)


Type: System.IAsyncResult

A System.IAsyncResult object that is returned to this method when an asynchronous operation completes.

Return value

Type: System.Boolean
true if the method succeeds; otherwise, false.