Class PropertyDataExtensions
Internal helper extensions useful when working with PropertyData
Inheritance
System.Object
PropertyDataExtensions
Namespace: EPiServer.Core.Internal
Assembly: EPiServer.dll
Version: 12.0.3Syntax
public static class PropertyDataExtensions : Object
Methods
GetContentLink(PropertyData)
Gets a reference to the page where this property is used on.
Declaration
public static ContentReference GetContentLink(this PropertyData propertyData)
Parameters
Type | Name | Description |
---|---|---|
PropertyData | propertyData | The object this method extends. |
Returns
Type | Description |
---|---|
ContentReference | A reference to the page where this property is used on. |
Remarks
We will first see if we can find a PageLink property in the collection of properties this belongs too. If we can't, we will try to get one from the executing http handler. If neither is successful, we return an empty string.