NotifyWorkItemComplete Method
Collapse the table of content
Expand the table of content
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer

WebPart.NotifyWorkItemComplete Method

Windows SharePoint Services 3

NOTE: This API is now obsolete.

Indicates that work being performed on an external asynchronous thread that has been registered using the RegisterWorkItem method has completed.

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

[ObsoleteAttribute("Use Page.RegisterAsyncTask instead.")]
[AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
protected void NotifyWorkItemComplete(
	IAsyncResult iar


Type: System.IAsyncResult
A System.IAsyncResult object.

If the NotifyWorkItemComplete method is not called, or is not called before the timeout occurs for the work being performed, the Web Part infrastructure treats the work as if it has timed out and calls the RenderWorkItemTimeout method instead of the RenderWebPart method.

© 2015 Microsoft