SPContext.ResetItem method

Forces a retrieval of the data that is associated with the SPItem object, even if the data was retrieved earlier.

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

Syntax

'Declaration
Public Sub ResetItem
'Usage
Dim instance As SPContext

instance.ResetItem()
public void ResetItem()

Remarks

The user of the SharePoint object model calls this method after it is identified that a change was made to the current item. After the current item is changed, the cached data in the current SPContext object, including data that came from the current item or its file, can no longer be trusted. As a result, all private member variables that come from the item or its file must be reset.

See also

Reference

SPContext class

SPContext members

Microsoft.SharePoint namespace