Share via


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

  • outputCacheSizeOnly
    Type: System.Boolean

    Whether to include just the size or all cache metadata for the items.

See Also

Reference

PublishingCache Class

PublishingCache Members

ListCacheContents Overload

Microsoft.SharePoint.Publishing Namespace