Export (0) Print
Expand All
AclUIMode enumeration
ISPFileAlternateStreamProvider interface
SPAppDatabaseStorageState enumeration
SPClaimsOperationContext class
SPRequestUserContext class
SPTenantAppInformation class
SPTenantStore class
TenantAppUtility class
TenantSettings class
Expand Minimize

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");
    }
);
Show:
© 2014 Microsoft