PublishingCache Class

Provides the static ListCacheContents() method to output the cache contents of an SPSite object to a Stream object.

Inheritance Hierarchy

System.Object
  Microsoft.SharePoint.Publishing.PublishingCache

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

Syntax

'Declaration
<SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel := True)> _
Public NotInheritable Class PublishingCache
'Usage
Dim instance As PublishingCache
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
public sealed class PublishingCache

Examples

using Microsoft.SharePoint.Publishing;using System.IO;Stream stream;SPSite site;// Ouput cache contents of site to stream.PublishingCache.ListCacheContents(stream,site);
Imports Microsoft.SharePoint.PublishingImports System.IOPrivate stream As StreamPrivate site As SPSite' Ouput cache contents of site to stream.PublishingCache.ListCacheContents(stream,site)

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

PublishingCache Members

Microsoft.SharePoint.Publishing Namespace