Don't miss out Virtual Happy Hour this Friday (April 26).

Try our conversational search powered by Generative AI!

Class PageObject

A metadata object for a EPiServer CMS Page Object

Inheritance
System.Object
PageObject
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Core
Assembly: EPiServer.dll
Version: 11.20.7
Syntax
[EPiServerDataContract]
[Obsolete("The PageObject API is no longer supported", true)]
public class PageObject

Constructors

PageObject()

Default constructor

Declaration
protected PageObject()

Properties

Id

The id of this object

Declaration
public virtual Identity Id { get; protected set; }
Property Value
Type Description
Identity

Importing

Gets or sets a value indicating whether this PageObject is in context of importing data.

Declaration
protected bool Importing { get; set; }
Property Value
Type Description
System.Boolean

true if importing; otherwise, false.

Remarks

This is when page is saved to determine whether object is to be saved. During importing the page and the PageObjects are imported at different occasions, meaning objects are saved separately later on.

MetaDataModified

Indicates if the metadata of this instance has been changed

Declaration
public virtual bool MetaDataModified { get; protected set; }
Property Value
Type Description
System.Boolean

Name

The name of the page object

Declaration
[EPiServerDataMember]
public virtual string Name { get; protected set; }
Property Value
Type Description
System.String

ObjectId

The Identity of the page object value item

Declaration
[EPiServerDataMember]
public virtual Identity ObjectId { get; protected set; }
Property Value
Type Description
Identity

Owner

The owner of this page object

Declaration
[EPiServerDataMember]
public virtual PageObject.OwnerOption Owner { get; protected set; }
Property Value
Type Description
PageObject.OwnerOption

PageGuid

The guid of the page this object belongs to

Declaration
[EPiServerDataMember]
[EPiServerDataIndex]
public virtual Guid PageGuid { get; protected set; }
Property Value
Type Description
System.Guid

PageLanguageBranch

The page language branch this object belongs to. This will be null if the Owner is not PageLanguageBranch

Declaration
[EPiServerDataMember]
public virtual string PageLanguageBranch { get; protected set; }
Property Value
Type Description
System.String

StoreName

The name of the store the object value item is stored in

Declaration
[EPiServerDataMember]
public virtual string StoreName { get; protected set; }
Property Value
Type Description
System.String

Value

The item value of the page object.

Declaration
public virtual object Value { get; set; }
Property Value
Type Description
System.Object

ValueAccessed

Indicates if the Value property of this instance has been accessed

Declaration
protected virtual bool ValueAccessed { get; set; }
Property Value
Type Description
System.Boolean

WorkPageId

The work page id this object belongs to. This will be 0 if the Owner is not PageVersion

Declaration
[EPiServerDataMember]
public virtual int? WorkPageId { get; protected set; }
Property Value
Type Description
System.Nullable<System.Int32>

Methods

ToRawPageObject()

Convert this instance to a RawPageObject

Declaration
public virtual RawPageObject ToRawPageObject()
Returns
Type Description
RawPageObject

A raw page object instance

Extension Methods