Partilhar 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)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

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()