C# Class Sdl.Web.Common.Models.PageBase

Model for page content, used for includes and other 'non-concrete' pages. Use WebPage for actual pages.
Inheritance: IPage
Show file Open project: sdl/dxa-web-application-dotnet Class Usage Examples

Protected Properties

Property Type Description
_regions RegionModelSet

Private Properties

Property Type Description

Public Methods

Method Description
DeepCopy ( ) : ViewModel

Creates a deep copy of this View Model.

Equals ( object obj ) : bool

Determines whether the specified object is equal to the current Page Model.

GetHashCode ( ) : int

Serves as a hash function for a particular type.

ToString ( ) : string

Returns a string that represents the current object.

Protected Methods

Method Description
PageBase ( string id ) : System

Initializes a new instance of PageBase

Method Details

DeepCopy() public method

Creates a deep copy of this View Model.
public DeepCopy ( ) : ViewModel
return ViewModel

Equals() public method

Determines whether the specified object is equal to the current Page Model.
public Equals ( object obj ) : bool
obj object The object to compare with the current object.
return bool

GetHashCode() public method

Serves as a hash function for a particular type.
public GetHashCode ( ) : int
return int

PageBase() protected method

Initializes a new instance of PageBase
protected PageBase ( string id ) : System
id string The identifier for the Page.
return System

ToString() public method

Returns a string that represents the current object.
public ToString ( ) : string
return string

Property Details

_regions protected property

protected RegionModelSet _regions
return RegionModelSet