SearchBox.EnableCache Property
This class or member is deprecated. When you upgrade or write new applications that use this class or member, use the new class or member instead. For Enterprise Search in Microsoft Office SharePoint Server 2007, use the SearchBoxEx instead. Gets or sets a flag that indicates whether this Web Part is cached.
Namespace: Microsoft.SharePoint.Portal.WebControls
Assembly: Microsoft.Office.Server.Search (in Microsoft.Office.Server.Search.dll)
Syntax
'Declaration
Public Property EnableCache As Boolean
Get
Set
'Usage
Dim instance As SearchBox
Dim value As Boolean
value = instance.EnableCache
instance.EnableCache = value
public bool EnableCache { get; set; }
Property Value
Type: System.Boolean
true if this Web Part is cached; otherwise, false.
Remarks
The EnableCache property is read/write. The default value for this property is false. When this property is set to true, the HTML of this control is cached for an amount of seconds determine by the CacheTimeOut property.