C1.Web.Wijmo.Controls.C1ReportViewer.ReportService Namespace > ReportCache Class : Priority Property |
'Declaration
<System.ComponentModel.NotifyParentPropertyAttribute(True)> <System.ComponentModel.DefaultValueAttribute()> <C1CategoryAttribute("Behavior")> <C1DescriptionAttribute(Key="C1ReportViewer.Cache.Priority", Description="Gets or sets the cost of reports relative to other objects in the cache.")> Public Property Priority As System.Web.Caching.CacheItemPriority
[System.ComponentModel.NotifyParentProperty(true)] [System.ComponentModel.DefaultValue()] [C1Category("Behavior")] [C1Description(Key="C1ReportViewer.Cache.Priority", Description="Gets or sets the cost of reports relative to other objects in the cache.")] public System.Web.Caching.CacheItemPriority Priority {get; set;}
If your application stores many types of object in the cache, you may want to set the Priority property to reflect the relative cost of each type of item. For example, you may be generating technical diagrams that take a long time to create, and should have a higher cache priority than simple reports. Or you may be caching customer information that is easy to retrieve from the database and should have a lower priority.
For more details on this property, and a list of valid settings, see the System.Web.Caching.Cache.Insert(System.String,System.Object) method in the .NET framework documentation.
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2