Class ControlRenderContextBuilder
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Responsible for building a Property
Inheritance
Inherited Members
Namespace: EPiServer.Web.Internal
Assembly: EPiServer.dll
Version: 10.10.4Syntax
[ServiceConfiguration]
public class ControlRenderContextBuilder
Constructors
ControlRenderContextBuilder(IPageSource, PropertyResolver)
Declaration
public ControlRenderContextBuilder(IPageSource pageSource, PropertyResolver propertyResolver)
Parameters
Type | Name | Description |
---|---|---|
IPage |
pageSource | |
Property |
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. |
control | The control that we should build the context for. |
System. |
propertyName | Name of the property that the control represents. |
Returns
Type | Description |
---|---|
Property |
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. |
control | The control that we should build the context for. |
System. |
propertyName | Name of the property that the control represents. |
System. |
boundData | Information on the bound context data. Normally a page ID. |
Returns
Type | Description |
---|---|
Property |
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.