CacheableWebPart.CachePerUser Property

This member is reserved for internal use and is not intended to be used directly from your code.Gets or sets a value indicating whether the Web Part cache is for all users or one user.

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

Syntax

'Declaration
<ResourcesAttribute("CacheableWebpart_Property_CachePerUser_Text", "",  _
    "")> _
<WebPartStorageAttribute(Storage.Shared)> _
Public Property CachePerUser As Boolean
    Get
    Set
'Usage
Dim instance As CacheableWebPart
Dim value As Boolean

value = instance.CachePerUser

instance.CachePerUser = value
[ResourcesAttribute("CacheableWebpart_Property_CachePerUser_Text", "", 
    "")]
[WebPartStorageAttribute(Storage.Shared)]
public bool CachePerUser { get; set; }

Property Value

Type: System.Boolean
true if the Web Part cache is per user; otherwise, false if the Web Part cache is for all users.

See Also

Reference

CacheableWebPart Class

CacheableWebPart Members

Microsoft.SharePoint.Portal.WebControls Namespace