Export (0) Print
Expand All

StaticPartialCachingControl Constructor (String, String, Int32, String, String, String, String, BuildMethod, String)

Initializes a new instance of the StaticPartialCachingControl class for a control that is defined in an .ascx file.

Namespace:  System.Web.UI
Assembly:  System.Web (in System.Web.dll)

public StaticPartialCachingControl(
	string ctrlID,
	string guid,
	int duration,
	string varyByParams,
	string varyByControls,
	string varyByCustom,
	string sqlDependency,
	BuildMethod buildMethod,
	string providerName


Type: System.String

The ID that is assigned to the control by ASP.NET.

Type: System.String

The globally unique identifier (GUID) for the cached control.

Type: System.Int32

The length of time that the control's output is cached.

Type: System.String

A string of the query string or form POST parameters by which to vary the user control in the cache.

Type: System.String

A string that lists the server-control properties by which to vary the user control in the cache.

Type: System.String

A user-defined string that contains custom output-cache parameter values.

Type: System.String

A semicolon-delimited string that specifies which databases and tables to use for the Microsoft SQL Server cache dependency.

Type: System.Web.UI.BuildMethod

A delegate that calls the method that builds the control.

Type: System.String

The name of the provider that is used to store the output-cached control.

You can specify an output-cache provider for a control, either declaratively or by using the PartialCachingAttribute in code.

.NET Framework

Supported in: 4.6, 4.5, 4

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

© 2014 Microsoft