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.
Assembly: System.Web (in System.Web.dll)
new : ctrlID:string * guid:string * duration:int * varyByParams:string * varyByControls:string * varyByCustom:string * sqlDependency:string * buildMethod:BuildMethod * providerName:string -> StaticPartialCachingControl
Parameters
- 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.
You can specify an output-cache provider for a control, either declaratively or by using the PartialCachingAttribute in code.
Available since 4.0