Bewerken

Delen via


StaticPartialCachingControl Constructors

Definition

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

Overloads

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

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

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

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

StaticPartialCachingControl(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.

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

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

public:
 StaticPartialCachingControl(System::String ^ ctrlID, System::String ^ guid, int duration, System::String ^ varyByParams, System::String ^ varyByControls, System::String ^ varyByCustom, System::Web::UI::BuildMethod ^ buildMethod);
public StaticPartialCachingControl (string ctrlID, string guid, int duration, string varyByParams, string varyByControls, string varyByCustom, System.Web.UI.BuildMethod buildMethod);
new System.Web.UI.StaticPartialCachingControl : string * string * int * string * string * string * System.Web.UI.BuildMethod -> System.Web.UI.StaticPartialCachingControl
Public Sub New (ctrlID As String, guid As String, duration As Integer, varyByParams As String, varyByControls As String, varyByCustom As String, buildMethod As BuildMethod)

Parameters

ctrlID
String

The identifier assigned to the server control by ASP.NET.

guid
String

The globally unique identifier passed from the server control.

duration
Int32

The length of time the server control is to remain in the cache.

varyByParams
String

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

varyByControls
String

A string of the server control properties by which to vary the user control in the cache.

varyByCustom
String

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

buildMethod
BuildMethod

A delegate that calls the method to build the StaticPartialCachingControl.

Remarks

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

See also

Applies to

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

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

public:
 StaticPartialCachingControl(System::String ^ ctrlID, System::String ^ guid, int duration, System::String ^ varyByParams, System::String ^ varyByControls, System::String ^ varyByCustom, System::String ^ sqlDependency, System::Web::UI::BuildMethod ^ buildMethod);
public StaticPartialCachingControl (string ctrlID, string guid, int duration, string varyByParams, string varyByControls, string varyByCustom, string sqlDependency, System.Web.UI.BuildMethod buildMethod);
new System.Web.UI.StaticPartialCachingControl : string * string * int * string * string * string * string * System.Web.UI.BuildMethod -> System.Web.UI.StaticPartialCachingControl
Public Sub New (ctrlID As String, guid As String, duration As Integer, varyByParams As String, varyByControls As String, varyByCustom As String, sqlDependency As String, buildMethod As BuildMethod)

Parameters

ctrlID
String

The identifier assigned to the server control by ASP.NET.

guid
String

The globally unique identifier passed from the server control.

duration
Int32

The length of time the server control is to remain in the cache.

varyByParams
String

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

varyByControls
String

A string of the server control properties by which to vary the user control in the cache.

varyByCustom
String

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

sqlDependency
String

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

buildMethod
BuildMethod

A delegate that calls the method to build the StaticPartialCachingControl.

Remarks

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

See also

Applies to

StaticPartialCachingControl(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.

public:
 StaticPartialCachingControl(System::String ^ ctrlID, System::String ^ guid, int duration, System::String ^ varyByParams, System::String ^ varyByControls, System::String ^ varyByCustom, System::String ^ sqlDependency, System::Web::UI::BuildMethod ^ buildMethod, System::String ^ providerName);
public StaticPartialCachingControl (string ctrlID, string guid, int duration, string varyByParams, string varyByControls, string varyByCustom, string sqlDependency, System.Web.UI.BuildMethod buildMethod, string providerName);
new System.Web.UI.StaticPartialCachingControl : string * string * int * string * string * string * string * System.Web.UI.BuildMethod * string -> System.Web.UI.StaticPartialCachingControl
Public Sub New (ctrlID As String, guid As String, duration As Integer, varyByParams As String, varyByControls As String, varyByCustom As String, sqlDependency As String, buildMethod As BuildMethod, providerName As String)

Parameters

ctrlID
String

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

guid
String

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

duration
Int32

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

varyByParams
String

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

varyByControls
String

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

varyByCustom
String

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

sqlDependency
String

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

buildMethod
BuildMethod

A delegate that calls the method that builds the control.

providerName
String

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

Remarks

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

Applies to