This documentation is archived and is not being maintained.

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

This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.

Creates the StaticPartialCachingControl object to contain the cached server control content.

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
)

Parameters

ctrlID
Type: System::String
The identifier assigned to the server control by ASP.NET.
guid
Type: System::String
The globally unique identifier passed from the server control.
duration
Type: System::Int32
The length of time the server control is to remain in the cache.
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 of 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 to build the StaticPartialCachingControl.

The StaticPartialCachingControl constructor is intended for use by the ASP.NET page framework and should not be called directly by developers.

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

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