System.Web.UI.StaticPartialCachingControl.BuildCachedControl Method

Builds a System.Web.UI.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.

Syntax

public static void BuildCachedControl (Control parent, string ctrlID, string guid, int duration, string varyByParams, string varyByControls, string varyByCustom, BuildMethod buildMethod)

Parameters

parent
The server control to contain the System.Web.UI.StaticPartialCachingControl instance.
ctrlID
The identifier assigned to the control by ASP.NET.
guid
The globally unique identifier for the cached control.
duration
The length of time the control's output is cached.
varyByParams
A string of the query string or form POST parameters by which to vary the server control in the cache.
varyByControls
A string that lists the server-control properties by which to vary the user control in the cache.
varyByCustom
A user-defined string that contains custom output-cache parameter values.
buildMethod
A delegate that calls the method to build the control.

Remarks

The StaticPartialCachingControl.BuildCachedControl(Control, string, string, int, string, string, string, BuildMethod) method builds a cached control with no relationship to a Microsoft SQL Server database table.

The StaticPartialCachingControl.BuildCachedControl(Control, string, string, int, string, string, string, BuildMethod) method is intended for use by the ASP.NET page framework and should not be called directly by developers.

Requirements

Namespace: System.Web.UI
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0