Class PropertyPageReference
Property representing a link to a page.
Inherited Members
Namespace: EPiServer.Core
Assembly: EPiServer.dll
Version: 12.0.3Syntax
public class PropertyPageReference : PropertyContentReference, IReadOnly<PropertyData>, IReadOnly
Constructors
PropertyPageReference()
Initializes a new instance of the PropertyPageReference class.
Declaration
public PropertyPageReference()
PropertyPageReference(ContentReference)
Initializes a new instance of the PropertyPageReference class.
Declaration
public PropertyPageReference(ContentReference contentLink)
Parameters
| Type | Name | Description |
|---|---|---|
| ContentReference | contentLink | The page link. |
PropertyPageReference(Guid)
Initializes a new instance of the PropertyPageReference class.
Declaration
public PropertyPageReference(Guid pageGuid)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Guid | pageGuid | The guid based identifier for the page |
PropertyPageReference(Int32)
Initializes a new instance of the PropertyPageReference class.
Declaration
public PropertyPageReference(int pageID)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | pageID | The page ID. |
PropertyPageReference(Int32, Int32)
Initializes a new instance of the PropertyPageReference class.
Declaration
public PropertyPageReference(int pageID, int workID)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | pageID | The page ID. |
| System.Int32 | workID | The work ID for the page version. |
PropertyPageReference(Int32, Int32, String)
Initializes a new instance of the PropertyPageReference class.
Declaration
public PropertyPageReference(int pageID, int workID, string providerName)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | pageID | The page ID. |
| System.Int32 | workID | The work ID of the page version. |
| System.String | providerName | Name of the provider. |
PropertyPageReference(Int32, String)
Initializes a new instance of the PropertyPageReference class.
Declaration
public PropertyPageReference(int pageID, string providerName)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | pageID | The page ID. |
| System.String | providerName | Name of the provider. |
Remarks
Only used for remote page references.
Properties
ContentLink
Gets or sets the content link.
Declaration
public override ContentReference ContentLink { get; set; }
Property Value
| Type | Description |
|---|---|
| ContentReference | The content link. |
Overrides
IsSelfReference
Gets a value indicating whether this property is a self reference.
Declaration
public override bool IsSelfReference { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
|
Overrides
Remarks
Only used when creating new pages when there is no known Page ID, must manually be reset.
PageLink
Gets or sets the page link.
Declaration
public virtual PageReference PageLink { get; set; }
Property Value
| Type | Description |
|---|---|
| PageReference | The page link. |
PropertyValueType
Gets the System.Type of the property value.
Declaration
public override Type PropertyValueType { get; }
Property Value
| Type | Description |
|---|---|
| System.Type | The System.Type of the property value. |
Overrides
Type
Property type as defined by enum PropertyDataType.
Declaration
public override PropertyDataType Type { get; }
Property Value
| Type | Description |
|---|---|
| PropertyDataType | The type as defined by enum PropertyDataType. |
Overrides
Methods
EnsureType(ContentReference)
Ensures that the type is a PageReference.
Declaration
protected override ContentReference EnsureType(ContentReference contentLink)
Parameters
| Type | Name | Description |
|---|---|---|
| ContentReference | contentLink | The |
Returns
| Type | Description |
|---|---|
| ContentReference |
Overrides
Parse(String)
Creates a new instance of PropertyPageReference with the value specified.
Declaration
public static PropertyPageReference Parse(string value)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | value | The page link as a string. |
Returns
| Type | Description |
|---|---|
| PropertyPageReference | A new instance of PropertyPageReference with the value specified. |
Parse(String, IPermanentLinkMapper)
Creates a new instance of PropertyPageReference with the value specified.
Declaration
public static PropertyPageReference Parse(string value, IPermanentLinkMapper permanentLinkMapper)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | value | The page link as a string. |
| IPermanentLinkMapper | permanentLinkMapper | The permanent link mapper. |
Returns
| Type | Description |
|---|---|
| PropertyPageReference | A new instance of PropertyPageReference with the value specified. |
ParseToSelf(String)
Sets the value of the property from a string representation.
Declaration
public override void ParseToSelf(string value)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | value | The string value to parse. |