Share via


SPListEventProperties.InvalidateWeb method

Invalidates the current out-of-date Web object so that the next time it is called the caller will get the current instance of the Web.

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

Syntax

'Declaration
Public Sub InvalidateWeb
'Usage
Dim instance As SPListEventProperties

instance.InvalidateWeb()
public void InvalidateWeb()

Remarks

Event properties are shared across event receivers. This includes the SPWeb object that gets created via event properties. If an event receiver performs some operation that makes the SPWeb object stale, it can call the InvalidateWeb method to invalidate the object.

See also

Reference

SPListEventProperties class

SPListEventProperties members

Microsoft.SharePoint namespace

InvalidateList()