Share via


SPWebEventProperties.InvalidateWeb method

Releases the current SPWeb object.

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

Syntax

'Declaration
Public Sub InvalidateWeb
'Usage
Dim instance As SPWebEventProperties

instance.InvalidateWeb()
public void InvalidateWeb()

Remarks

You can use this method to invalidate the current SPWeb object if it has changed, so that an updated instance of the SPWeb class is returned the next time it is requested.

See also

Reference

SPWebEventProperties class

SPWebEventProperties members

Microsoft.SharePoint namespace

Web