Share via


PublishingPage.GetEffectiveAnonymousPageCacheProfileId Method

Returns the current cache profile identifier (ID) that this page uses if output is cached for an anonymous user.

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

Syntax

'Declaration
Public Function GetEffectiveAnonymousPageCacheProfileId As Integer
'Usage
Dim instance As PublishingPage
Dim returnValue As Integer

returnValue = instance.GetEffectiveAnonymousPageCacheProfileId()
public int GetEffectiveAnonymousPageCacheProfileId()

Return Value

Type: System.Int32
The current effective output cache profile for an anonymous user.

Remarks

This is the ID of the list item in the cache profiles list, stored in the root Web site of the site collection. This property is calculated by looking at the anonymous cache profile of the root Web site.

If Web overrides are enabled, the page uses the profile associated with its parent Web site. If page layout overrides are enabled, the page uses the anonymous profile associated with the page layout, if an anonymous profile is defined.

If both a Web and page layout override are present, the page layout is used.

See Also

Reference

PublishingPage Class

PublishingPage Members

Microsoft.SharePoint.Publishing Namespace