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

 

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

Builds a StaticPartialCachingControl object with the parameters specified in the user control (.ascx file) and adds it as a parsed sub-object to the containing server control.

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

static member BuildCachedControl : 
        parent:Control *
        ctrlID:string *
        guid:string *
        duration:int *
        varyByParams:string *
        varyByControls:string *
        varyByCustom:string *
        sqlDependency:string *
        buildMethod:BuildMethod -> unit

Parameters

parent
Type: System.Web.UI.Control

The server control to contain the StaticPartialCachingControl instance.

ctrlID
Type: System.String

The identifier assigned to the control by ASP.NET.

guid
Type: System.String

The globally unique identifier for the cached control.

duration
Type: System.Int32

The length of time 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 server 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 to build the control.

The BuildCachedControl method builds a cached control with a relationship to a SQL Server database table specified by the sqlDependency parameter.

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

.NET Framework
Available since 2.0
Return to top
Show: