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)
Available in Sandboxed Solutions: No
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.IAsyncResultA 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.