Share via


PublishingWeb.AnonymousPageCacheProfileId Property

Gets or sets the ID of the ASP.NET output cache profile for this PublishingWeb object.

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

Syntax

'Declaration
Public Property AnonymousPageCacheProfileId As Integer
    Get
    Set
'Usage
Dim instance As PublishingWeb
Dim value As Integer

value = instance.AnonymousPageCacheProfileId

instance.AnonymousPageCacheProfileId = value
public int AnonymousPageCacheProfileId { get; set; }

Property Value

Type: System.Int32
An integer representing the ID of the cache profile. A value of -1 indicates that the profile should be inherited from a parent PublishingWeb object if possible.

Remarks

Use this property to determine if and how PublishingPage objects that are contained by the PublishingWeb class should be cached in the ASP.NET output cache.

To save changes after setting this property, call the Update method.

See Also

Reference

PublishingWeb Class

PublishingWeb Members

Microsoft.SharePoint.Publishing Namespace