Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

SPLongOperation.BeginOperation delegate

Defines the signature for a delegate that begins a long operation.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
public delegate void BeginOperation(
	SPLongOperation longOperation
)

Parameters

longOperation
Type: Microsoft.SharePoint.SPLongOperation

An object that represents a long operation.

You can use this delegate method with the static SPLongOperation.Begin(SPLongOperation.BeginOperation) method, as shown in the following example:

SPLongOperation.Begin(
    delegate(SPLongOperation longOperation)
    {
        // Do something that takes a long time to complete.
        
        
        // Inform the server that the work is done
        // and that the page used to indicate progress
        // is no longer needed.
        longOperation.End("default.aspx");
    }
);
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.