SPLimitedWebPartManager.CacheInvalidate Method
Invalidates cached data.
Namespace: Microsoft.SharePoint.WebPartPages
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Syntax
'Declaration
Public Sub CacheInvalidate ( _
webPart As WebPart, _
storage As Storage _
)
'Usage
Dim instance As SPLimitedWebPartManager
Dim webPart As WebPart
Dim storage As Storage
instance.CacheInvalidate(webPart, storage)
public void CacheInvalidate(
WebPart webPart,
Storage storage
)
Parameters
- webPart
Type: System.Web.UI.WebControls.WebParts.WebPart
- storage
Type: Microsoft.SharePoint.WebPartPages.Storage
Remarks
If a Web Part derives from Microsoft.SharePoint.WebPartPages.WebPart, and caches data using the PartCacheWrite method from that class, this method will invalidate that cache data.