Class PropertyGetHandler
A class that has the functionality that is used when getting a property for a page. This is the logic that is used to enable the funtion fetch data from other pages (if fetch data from is specified). It's also responsible to fetch dynamic properties.
Inheritance
Namespace: EPiServer.Core
Assembly: EPiServer.dll
Version: 12.0.3Syntax
public static class PropertyGetHandler : Object
Methods
DefaultPropertyHandler(String, PropertyDataCollection)
The default property get handler.
Declaration
public static PropertyData DefaultPropertyHandler(string name, PropertyDataCollection properties)
Parameters
Type | Name | Description |
---|---|---|
System. |
name | The name of the property that you want to fetch. |
Property |
properties | The Property |
Returns
Type | Description |
---|---|
Property |
The property with the given name. |
Remarks
The property will be searched for in the following order: The Property
FetchDataFrom(String, PropertyDataCollection)
Used to fetch properties from another page if this has been defined.
Declaration
public static PropertyData FetchDataFrom(string name, PropertyDataCollection properties)
Parameters
Type | Name | Description |
---|---|---|
System. |
name | The name of the property. |
Property |
properties |
Returns
Type | Description |
---|---|
Property |
The Property |
PropertyHandlerWithDynamicProperties(String, PropertyDataCollection)
The default property get handler.
Declaration
public static PropertyData PropertyHandlerWithDynamicProperties(string name, PropertyDataCollection properties)
Parameters
Type | Name | Description |
---|---|---|
System. |
name | The name of the property that you want to fetch. |
Property |
properties | The Property |
Returns
Type | Description |
---|---|
Property |
The property with the given name. |
Remarks
The property will be searched for in the following order: The Property
SimplePropertyHandler(String, PropertyDataCollection)
A simple property get handler that only looks in the Property
Declaration
public static PropertyData SimplePropertyHandler(string name, PropertyDataCollection properties)
Parameters
Type | Name | Description |
---|---|---|
System. |
name | The name of the property that you want to fetch. |
Property |
properties |
Returns
Type | Description |
---|---|
Property |
The property with the given name from the Property |