June 2002
Intermediate to advanced
816 pages
28h 12m
English
PartialCachingAttribute
This class specifies the attributes that can be set on user controls for
fragment caching. To enable fragment caching, use the <OutputCache> directive at the beginning of the appropriate
.ascx file. ASP.NET will automatically generate this attribute
when the user control is requested. Alternatively, you can leave out the directive and
use this attribute in the code-behind class for the user control.
Public NotInheritable Class PartialCachingAttribute : Inherits Attribute ' Public Constructors Public Sub New(ByVal duration As Integer) Public Sub New(ByVal duration As Integer, ByVal varyByParams As String, ByVal varyByControls As String, ByVal varyByCustom As String) ' Public Instance Properties Public ReadOnly Property Duration As Integer Public ReadOnly Property VaryByControls As String Public ReadOnly Property VaryByCustom As String Public ReadOnly Property VaryByParams As String End Class
System.Object→System.Attribute→ PartialCachingAttribute
Class
Read now
Unlock full access