System.Web 1.0.5000.0 2.0.0.0 Gtk# is thread aware, but not thread safe; See the <link location="node:gtk-sharp/programming/threads">Gtk# Thread Programming</link> for details. System.Attribute System.AttributeUsage(System.AttributeTargets.Class)

The attribute class marks user controls (.ascx files) that support fragment caching, and encapsulates the cache settings that ASP.NET uses when caching the control. Page and controls developers use the attribute to enable output caching for a user control in a code-behind file.

Using the is one of several ways you can enable output caching. The following list describes methods you can use to enable output caching.

Use the @ OutputCache directive to enable output caching in declarative scenarios.

Use the to enable caching for a user control in a code-behind file.

Use the class to programmatically specify cache settings in programmatic scenarios in which you are working with instances.

If a user control contains an @ OutputCache directive or has a applied, the ASP.NET parser generates an instance of the class to wrap the user control.

For more information about ASP.NET caching, see ASP.NET Caching Features. For more information about using attributes, see Extending Metadata Using Attributes.

Defines the metadata attribute that Web Forms user controls (.ascx files) use to indicate if and how their output is cached. This class cannot be inherited.

- Constructor
  To be added

  Initializes a new instance of the class with the specified duration assigned to the user control to be cached.

  The amount of time, in seconds, a user control should remain in the output cache.
  1.0.5000.0
  2.0.0.0
- Constructor
  To be added

  Initializes a new instance of the class, specifying the caching duration, any GET and POST values, control names, and custom output caching requirements used to vary the cache.

  The amount of time, in seconds, that the user control is cached.
  A semicolon-separated list of strings used to vary the output cache. By default, these strings correspond to a query string value sent with GET method attributes or to a parameter sent using the POST method. When this attribute is set to multiple parameters, the output cache contains a different version of the requested document for each specified parameter. Possible values include "none", "*", and any valid query string or POST parameter name.
  A semicolon-separated list of strings used to vary the output cache. These strings represent fully qualified names of properties on a user control. When this parameter is used for a user control, the user control output is varied to the cache for each specified user control property.
  Any text that represents custom output caching requirements. If this parameter is given a value of "browser", the cache is varied by browser name and major version information. If a custom string is entered, you must override the method in your application's Global.asax file.
  1.0.5000.0
  2.0.0.0
- Constructor
  To be added.

  Initializes a new instance of the class, specifying the caching duration, any GET and POST values, control names, custom output caching requirements used to vary the cache, and whether the user control output can be shared with multiple pages.

  The amount of time, in seconds, that the user control is cached.
  A semicolon-separated list of strings used to vary the output cache. By default, these strings correspond to a query string value sent with GET method attributes, or a parameter sent using the POST method. When this attribute is set to multiple parameters, the output cache contains a different version of the requested document for each specified parameter. Possible values include "none", "*", and any valid query string or POST parameter name.
  A semicolon-separated list of strings used to vary the output cache. These strings represent fully qualified names of properties on a user control. When this parameter is used for a user control, the user control output is varied to the cache for each specified user control property.
  Any text that represents custom output caching requirements. If this parameter is given a value of "browser", the cache is varied by browser name and major version information. If a custom string is entered, you must override the method in your application's Global.asax file.
  true to indicate that the user control output can be shared with multiple pages; otherwise, false.
  1.0.5000.0
  2.0.0.0
- Constructor
  2.0.0.0
  To be added.

  Initializes a new instance of the class, specifying the caching duration, any GET and POST values, control names, custom output caching requirements used to vary the cache, the database dependencies, and whether the user control output can be shared with multiple pages.

  The amount of time, in seconds, that the user control is cached.
  A semicolon-separated list of strings used to vary the output cache. By default, these strings correspond to a query string value sent with GET method attributes, or a parameter sent using the POST method. When this attribute is set to multiple parameters, the output cache contains a different version of the requested document for each specified parameter. Possible values include "none", "*", and any valid query string or POST parameter name.
  A semicolon-separated list of strings used to vary the output cache. These strings represent fully qualified names of properties on a user control. When this parameter is used for a user control, the user control output is varied to the cache for each specified user control property.
  Any text that represents custom output caching requirements. If this parameter is given a value of "browser", the cache is varied by browser name and major version information. If a custom string is entered, you must override the method in your application's Global.asax file.
  A delimited list of database names and table names that, when changed, explicitly expire a cache entry in the ASP.NET cache. These database names match those SQL Server cache dependencies identified in your Web configuration section.
  true to indicate that the user control output can be shared with multiple pages; otherwise, false.
- Property
  System.Int32 To be added: an object of type 'int' To be added

  Gets the amount of time, in seconds, that cached items should remain in the output cache.

  1.0.5000.0
  2.0.0.0
- Property
  System.Boolean To be added.

  If you set this property to true, cached user control output can be accessed by multiple Web Forms pages. If you do not set it to true, the default behavior is to cache one version of user control output for each page that contains that user control. You can potentially save a significant amount of memory by enabling this property.

  Gets a value indicating whether user control output can be shared with multiple pages.

  1.0.5000.0
  2.0.0.0
- Property
  2.0.0.0
  System.String To be added.

  The string identifies databases and table names according to the name of a SQL Server cache dependency in your configuration (typically added using the sqlcachedependency configuration elements). If you use SQL Server 2005, you can set the property to "CommandNotification", which instructs ASP.NET to create row level dependencies for all SQL commands issued within the context of the current ASP.NET page.

  Gets a delimited string that identifies one or more database and table name pairs that the cached user control is dependent on.

- Property
  System.String To be added: an object of type 'string' To be added

  Gets a list of user control properties that the output cache uses to vary the user control.

  1.0.5000.0
  2.0.0.0
- Property
  System.String To be added: an object of type 'string'

  If you specify "browser" for this property, the user control will be varied by browser type and major version number. You can also use this property to extend the values that output cache varies the user control response.

  Gets a list of custom strings that the output cache will use to vary the user control.

  1.0.5000.0
  2.0.0.0
- Property
  System.String To be added: an object of type 'string' To be added

  Gets a list of query string or form POST parameters that the output cache will use to vary the user control.

  1.0.5000.0
  2.0.0.0