Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

StaticPartialCachingControl.BuildCachedControl Method (Control, String, String, Int32, String, String, String, String, BuildMethod, String)

Builds 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 static void BuildCachedControl(
	Control parent,
	string ctrlID,
	string guid,
	int duration,
	string varyByParams,
	string varyByControls,
	string varyByCustom,
	string sqlDependency,
	BuildMethod buildMethod,
	string providerName
)

Parameters

parent
Type: System.Web.UI.Control

The server control that is used as the container for the StaticPartialCachingControl instance.

ctrlID
Type: System.String

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

guid
Type: System.String

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

duration
Type: System.Int32

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

varyByParams
Type: System.String

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

varyByControls
Type: System.String

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

varyByCustom
Type: System.String

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

sqlDependency
Type: System.String

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

buildMethod
Type: System.Web.UI.BuildMethod

A delegate that calls the method that builds the control.

providerName
Type: System.String

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

.NET Framework

Supported in: 4.5.1, 4.5, 4

Windows Phone 8.1, Windows Phone 8, 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.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.