November Happy Hour will be moved to Thursday December 5th.

Class ControlRenderContextBuilder

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Responsible for building a PropertyContext for the current location of a specific System.Web.UI.Control.

Inheritance
System.Object
ControlRenderContextBuilder
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Web.Internal
Assembly: EPiServer.Cms.AspNet.dll
Version: 11.20.7
Syntax
[ServiceConfiguration]
public class ControlRenderContextBuilder

Constructors

ControlRenderContextBuilder(IPageSource, PropertyResolver)

Declaration
public ControlRenderContextBuilder(IPageSource pageSource, PropertyResolver propertyResolver)
Parameters
Type Name Description
IPageSource pageSource
PropertyResolver propertyResolver

Methods

BuildContext(Control, String)

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Builds up a render context object from the location of the control and property name.

Declaration
public PropertyContext BuildContext(Control control, string propertyName)
Parameters
Type Name Description
System.Web.UI.Control control

The control that we should build the context for.

System.String propertyName

Name of the property that the control represents.

Returns
Type Description
PropertyContext

A ContentContext object representing the current context of the control.

Remarks

The control needs to be added to the control tree for this method to return a proper context object.

BuildContext(Control, String, Int32)

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Builds up a context object from the location of the control and property name plus optional data from a previous data binding.

Declaration
public PropertyContext BuildContext(Control control, string propertyName, int boundData)
Parameters
Type Name Description
System.Web.UI.Control control

The control that we should build the context for.

System.String propertyName

Name of the property that the control represents.

System.Int32 boundData

Information on the bound context data. Normally a page ID.

Returns
Type Description
PropertyContext

A ContentContext object representing the current context of the control.

Remarks

The control needs to be added to the control tree for this method to return a proper context object.

The boundData is used when rebuilding the context after a postback.

Extension Methods