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

Interface IDynamicContentControlAdapter

Interface implmented by a class that acts as a adapter for a System.Web.UI.Control that is used with DynamicContent , for example see DynamicContentAdapter<T>.

Namespace: EPiServer.DynamicContent
Assembly: EPiServer.dll
Version: 9.12.2
Syntax
public interface IDynamicContentControlAdapter
Remarks

This interface is mainly intended to be used internaly within EPiServer.

Properties

ControlType

Gets the type of the control that is adapted.

Declaration
Type ControlType { get; }
Property Value
Type Description
System.Type

The type of the control.

Properties

Gets the properties that are used to persist the values from the Dynamic Content instance.

Declaration
PropertyDataCollection Properties { get; }
Property Value
Type Description
PropertyDataCollection

The properties.

Methods

TransferDataFromControlToProperties(Control)

Called from framework when the adapter should transfer values from the control instance to the Properties collection.

Declaration
void TransferDataFromControlToProperties(Control control)
Parameters
Type Name Description
System.Web.UI.Control control

The control.

Remarks

When saving dynamic content settings from edit mode, first a call will be made to PrepareForSave(). After the call a check will be performed against Properties to see if it is modified. If not this method is called.

Extension Methods