SPLongOperation.Dispose Method

Indicates to the server that the IDisposable object (and its associated image and text resources) are no longer needed and should be disposed of by the system.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
Public Sub Dispose
'Usage
Dim instance As SPLongOperation

instance.Dispose()
public void Dispose()

Implements

IDisposable.Dispose()

Remarks

Call Dispose when you are finished using the SPLongOperation class. The Dispose method leaves the SPLongOperation class in an unusable state. After calling Dispose, you must release all references to the SPLongOperation class so the garbage collector can reclaim the memory that the SPLongOperation class was occupying.

See Also

Reference

SPLongOperation Class

SPLongOperation Members

Dispose Overload

Microsoft.SharePoint Namespace