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