Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The default cache settings creator.
Namespace: Microsoft.SharePoint.Publishing
Assembly: Microsoft.SharePoint.Publishing (in Microsoft.SharePoint.Publishing.dll)
Syntax
'Declaration
Public Shared Function GetSiteCacheSettings ( _
site As SPSite, _
forceLoad As Boolean _
) As SiteCacheSettings
'Usage
Dim site As SPSite
Dim forceLoad As Boolean
Dim returnValue As SiteCacheSettings
returnValue = SiteCacheSettings.GetSiteCacheSettings(site, _
forceLoad)
public static SiteCacheSettings GetSiteCacheSettings(
SPSite site,
bool forceLoad
)
Parameters
- site
Type: Microsoft.SharePoint.SPSite
Site that the cache belongs to.
- forceLoad
Type: System.Boolean
If forceLoad is set to true, the settings will be retrieved from the site rather than using a cached version.
Return Value
Type: Microsoft.SharePoint.Publishing.SiteCacheSettings
A new cache settings object.
Remarks
Determines if these settings have already been retrieved, and if they have, this method uses the cached version.