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)

Syntax

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

returnValue = Me.RegisterWorkItem(ar)
[ObsoleteAttribute("Use Page.RegisterAsyncTask instead.")]
protected bool RegisterWorkItem(
    IAsyncResult ar
)

Parameters

  • 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.

See also

Reference

WebPart class

WebPart members

Microsoft.SharePoint.WebPartPages namespace