asp.net.ph

PartialCachingAttribute Class

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.

PartialCachingAttribute Class Members

Collapse   Constructors

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 )

Collapse   Properties

Visibility Name Value Type Accessibility
public Duration Int32 [ Get , Set ]
public ProviderName String [ Get , Set ]
public Shared Boolean [ Get , Set ]
public SqlDependency String [ Get , Set ]
public VaryByControls String [ Get , Set ]
public VaryByCustom String [ Get , Set ]
public VaryByParams String [ Get , Set ]

Remarks

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.

See Also

UserControl   Web Forms User Controls   Caching Portions of an ASP.NET Page   @ OutputCache Directive Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph