SPWebPartCollection.CacheInvalidate Method
NOTE: This API is now obsolete.
Obsolete. Invalidates the cache for a Web Part, including the output and Web Part caches.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Syntax
'Declaration
<ObsoleteAttribute("Use SPLimitedWebPartManager instead.")> _
Public Sub CacheInvalidate ( _
storageKey As Guid, _
storage As Storage _
)
'Usage
Dim instance As SPWebPartCollection
Dim storageKey As Guid
Dim storage As Storage
instance.CacheInvalidate(storageKey, _
storage)
[ObsoleteAttribute("Use SPLimitedWebPartManager instead.")]
public void CacheInvalidate(
Guid storageKey,
Storage storage
)
Parameters
storageKey
Type: System.GuidA GUID that identifies the Web Part.
storage
Type: Microsoft.SharePoint.WebPartPages.StorageA Microsoft.SharePoint.WebPartPages.Storage value that specifies whether the storage for the Web Part is personal or shared.