Share via


CacheableWebPart Class

This class and its members are reserved for internal use and are not intended to be used in your code.Assists the derived Web Part with HTML output caching.

Inheritance Hierarchy

System.Object
  System.Web.UI.Control
    System.Web.UI.WebControls.WebControl
      System.Web.UI.WebControls.Panel
        System.Web.UI.WebControls.WebParts.Part
          System.Web.UI.WebControls.WebParts.WebPart
            Microsoft.SharePoint.WebPartPages.WebPart
              Microsoft.SharePoint.Portal.WebControls.WebPartLoc
                Microsoft.SharePoint.Portal.WebControls.CacheableWebPart
                  

Namespace:  Microsoft.SharePoint.Portal.WebControls
Assembly:  Microsoft.SharePoint.Portal (in Microsoft.SharePoint.Portal.dll)

Syntax

'Declaration
<GuidAttribute("BD85F678-9BDE-4a5c-AFFD-6AB4012550EA")> _
<AspNetHostingPermissionAttribute(SecurityAction.InheritanceDemand, Level := AspNetHostingPermissionLevel.Minimal)> _
<SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel := True)> _
<AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level := AspNetHostingPermissionLevel.Minimal)> _
<SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel := True)> _
Public MustInherit Class CacheableWebPart _
    Inherits WebPartLoc
'Usage
Dim instance As CacheableWebPart
[GuidAttribute("BD85F678-9BDE-4a5c-AFFD-6AB4012550EA")]
[AspNetHostingPermissionAttribute(SecurityAction.InheritanceDemand, Level = AspNetHostingPermissionLevel.Minimal)]
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel = true)]
[AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
public abstract class CacheableWebPart : WebPartLoc

Remarks

If you use the CacheableWebPart across users, there is a possibility of a security issue. There will be no warning.

Deriving from the CacheableWebPart class is unsupported.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

CacheableWebPart Members

Microsoft.SharePoint.Portal.WebControls Namespace

Inheritance Hierarchy

System.Object
  System.Web.UI.Control
    System.Web.UI.WebControls.WebControl
      System.Web.UI.WebControls.Panel
        System.Web.UI.WebControls.WebParts.Part
          System.Web.UI.WebControls.WebParts.WebPart
            Microsoft.SharePoint.WebPartPages.WebPart
              Microsoft.SharePoint.Portal.WebControls.WebPartLoc
                Microsoft.SharePoint.Portal.WebControls.CacheableWebPart
                  Microsoft.SharePoint.Portal.WebControls.BaseAreaWebPart
                  Microsoft.SharePoint.Portal.WebControls.BrowseSites
                  Microsoft.SharePoint.Portal.WebControls.CategoryDetail
                  Microsoft.SharePoint.Portal.WebControls.ContactFieldControl
                  Microsoft.SharePoint.Portal.WebControls.PortalQuickStartGuide
                  Microsoft.SharePoint.Portal.WebControls.SearchBox
                  Microsoft.SharePoint.Portal.WebControls.STSQueryParts