System.Web.UI Namespace
Defines the metadata attribute that Web Forms user controls use to indicate how their output is cached. This class cannot be inherited.
Visibility |
Constructor |
Parameters |
public |
PartialCachingAttribute |
(
Int32
duration
)
|
public |
PartialCachingAttribute |
(
Int32
duration
,
String
varyByParams
,
String
varyByControls
,
String
varyByCustom
)
|
public |
PartialCachingAttribute |
(
Int32
duration
,
String
varyByParams
,
String
varyByControls
,
String
varyByCustom
,
Boolean
shared
)
|
public |
PartialCachingAttribute |
(
Int32
duration
,
String
varyByParams
,
String
varyByControls
,
String
varyByCustom
,
String
sqlDependency
,
Boolean
shared
)
|
|
If a user control ( .ascx file ) contains an @ OutputCache directive, ASP.NET automatically generates this class when the user control is requested. You can declare this attribute in a class derived from the UserControl class to specify settings for the user control to output cache.
For more information about using attributes, see Extending Metadata Using Attributes.
UserControl Web Forms User Controls Caching Portions of an ASP.NET Page @ OutputCache Directive
|
|