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
Inherited Members
Namespace: EPiServer.Core
Assembly: EPiServer.dll
Version: 11.20.7Syntax
public static class PropertyGetHandler
Methods
DefaultPropertyHandler(String, PropertyDataCollection)
The default property get handler.
Declaration
public static PropertyData DefaultPropertyHandler(string name, PropertyDataCollection properties)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The name of the property that you want to fetch. |
PropertyDataCollection | properties | The PropertyDataCollection that should be looked in first. |
Returns
Type | Description |
---|---|
PropertyData | The property with the given name. |
Remarks
The property will be searched for in the following order: The PropertyDataCollection, fetch data from, dynamic properties.
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.String | name | The name of the property. |
PropertyDataCollection | properties |
Returns
Type | Description |
---|---|
PropertyData | The PropertyData from the fetch data page. |
PropertyHandlerWithDynamicProperties(String, PropertyDataCollection)
The default property get handler.
Declaration
public static PropertyData PropertyHandlerWithDynamicProperties(string name, PropertyDataCollection properties)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The name of the property that you want to fetch. |
PropertyDataCollection | properties | The PropertyDataCollection that should be looked in first. |
Returns
Type | Description |
---|---|
PropertyData | The property with the given name. |
Remarks
The property will be searched for in the following order: The PropertyDataCollection, fetch data from, dynamic properties.
SimplePropertyHandler(String, PropertyDataCollection)
A simple property get handler that only looks in the PropertyDataCollection.
Declaration
public static PropertyData SimplePropertyHandler(string name, PropertyDataCollection properties)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The name of the property that you want to fetch. |
PropertyDataCollection | properties |
Returns
Type | Description |
---|---|
PropertyData | The property with the given name from the PropertyDataCollection. |