PublishingCache.ListCacheContents Method (Stream, Boolean, SPSite)
Lists the contents of the cache and perssts it into the stream for the site collection.
Namespace: Microsoft.SharePoint.Publishing
Assembly: Microsoft.SharePoint.Publishing (in Microsoft.SharePoint.Publishing.dll)
Syntax
'Declaration
Public Shared Sub ListCacheContents ( _
stream As Stream, _
outputCacheSizeOnly As Boolean, _
site As SPSite _
)
'Usage
Dim stream As Stream
Dim outputCacheSizeOnly As Boolean
Dim site As SPSitePublishingCache.ListCacheContents(stream, outputCacheSizeOnly, _
site)
public static void ListCacheContents(
Stream stream,
bool outputCacheSizeOnly,
SPSite site
)
Parameters
stream
Type: System.IO.StreamThe stream to persist into.
outputCacheSizeOnly
Type: System.BooleanWhether to include just the size or all cache metadata for the items.
site
Type: Microsoft.SharePoint.SPSiteThe site collection.