PublishingPage.GetEffectiveAuthenticatedPageCacheProfileId Method

This method returns the current cache profile ID that this page uses if output is cached for an authenticated user.

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

Syntax

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

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

Return Value

Type: System.Int32
The current effective output cache profile for an authenticated 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 authenticated cache profile of the root Web site.

If Web overrides are enabled, the page uses the profile associated with its parent Web. If page layout overrides are enabled, the page uses the authenticated profile associated with the page layout, if an authenticated 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