Share via


CbqQueryCache Constructor

Retrieves the version information from the specified Content Query Web Part.

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

Syntax

'Declaration
Public Sub New ( _
    feed As Cache, _
    web As String, _
    page As Guid, _
    webpart As Guid, _
    cacheTime As Integer _
)
'Usage
Dim feed As Cache
Dim web As String
Dim page As Guid
Dim webpart As Guid
Dim cacheTime As Integer

Dim instance As New CbqQueryCache(feed, web, _
    page, webpart, cacheTime)
public CbqQueryCache(
    Cache feed,
    string web,
    Guid page,
    Guid webpart,
    int cacheTime
)

Parameters

  • web
    Type: System.String
    Web URL for the Content Query Web Part.
  • page
    Type: System.Guid
    Page to which the Content Query Web Part belongs.
  • webpart
    Type: System.Guid
    ID for the Content Query Web Part.
  • cacheTime
    Type: System.Int32
    Time at which CbqQueryVersions is cached.

Examples

{
                string webUrl = Request.QueryString["webUrl"];
                Guid pageGuid = new Guid(Request.QueryString["pageUniqueId"]);
                Guid webpartGuid = new Guid(Request.QueryString["wpStorageKey"]);
                int cacheFeedTime = 800;

Note

The code in this example is part of a larger code example available in the CbqQueryCache class topic. See the class topic to view the code in context.

See Also

Reference

CbqQueryCache Class

CbqQueryCache Members

Microsoft.SharePoint.Publishing Namespace

GetSiteData