Class PropertyParameter
Binds a EPiServer property to a parameter object.
Inheritance
Namespace: EPiServer.Web.WebControls
Assembly: EPiServer.dll
Version: 7.19.2Syntax
public class PropertyParameter : ParameterRemarks
You can use the PropertyParameter to bind the value of an EPiServer property, such as PageName, to a parameter used in a paremeterized DataSource scenarios.
Constructors
PropertyParameter()
Initializes a new instance of the PropertyParameter class.
Declaration
public PropertyParameter()PropertyParameter(PropertyParameter)
Initializes a new instance of the PropertyParameter class as a copy of another.
Declaration
public PropertyParameter(PropertyParameter original)Parameters
| Type | Name | Description | 
|---|---|---|
| PropertyParameter | original | The original. | 
PropertyParameter(String, String)
Initializes a new instance of the PropertyParameter class.
Declaration
public PropertyParameter(string name, string propertyName)Parameters
| Type | Name | Description | 
|---|---|---|
| System.String | name | The name of the parameter. | 
| System.String | propertyName | The name of the EPiServer property. | 
Properties
ConvertPageReferenceToInt32
Gets or sets a value indicating whether a PageReference type property should be converted to an System.Int32 when evaluated.
Declaration
public bool ConvertPageReferenceToInt32 { get; set; }Property Value
| Type | Description | 
|---|---|
| System.Boolean | 
 | 
PropertyName
Gets or sets the name of the property to bind to.
Declaration
public string PropertyName { get; set; }Property Value
| Type | Description | 
|---|---|
| System.String | The name of the property to bind to. | 
Methods
Clone()
Returns a duplicate of the current System.Web.UI.WebControls.Parameter instance.
Declaration
protected override Parameter Clone()Returns
| Type | Description | 
|---|---|
| System.Web.UI.WebControls.Parameter | A System.Web.UI.WebControls.Parameter that is an exact duplicate of the current one. | 
Evaluate(HttpContext, Control)
Updates and returns the value of the System.Web.UI.WebControls.Parameter object.
Declaration
protected override object Evaluate(HttpContext context, Control control)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Web.HttpContext | context | The current System.Web.HttpContext of the request. | 
| System.Web.UI.Control | control | The System.Web.UI.Control the parameter is bound to. If the parameter is not bound to a control, the control parameter is ignored. | 
Returns
| Type | Description | 
|---|---|
| System.Object | An object that represents the updated and current value of the parameter. | 
