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

Represents the View Model for a Page Region.
Inheritance: Region
Afficher le fichier Open project: sdl/dxa-web-application-dotnet Class Usage Examples

Méthodes publiques

Méthode 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 Region Model, i.e. it has the same name.

ExtractSyndicationFeedItems ( Sdl.Web.Common.Configuration.Localization localization ) : IEnumerable

Extracts syndication feed items.

FilterConditionalEntities ( Sdl.Web.Common.Configuration.Localization localization ) : void

Filters (i.e. removes) conditional Entities which don't meet the conditions.

Applies to this Region and all its nested Regions.

GetHashCode ( ) : int

Serves as a hash function for a particular type.

GetXpmMarkup ( Sdl.Web.Common.Configuration.Localization localization ) : string

Gets the rendered XPM markup

RegionModel ( string name ) : System.Collections.Generic

Initializes a new RegionModel instance.

RegionModel ( string name, string qualifiedViewName ) : System.Collections.Generic

Initializes a new RegionModel instance for an empty/non-existing Region.

ToString ( ) : string

Returns a string that represents the current object.

Method Details

DeepCopy() public méthode

Creates a deep copy of this View Model.
public DeepCopy ( ) : ViewModel
Résultat ViewModel

Equals() public méthode

Determines whether the specified object is equal to the current Region Model, i.e. it has the same name.
public Equals ( object obj ) : bool
obj object The object to compare with the current object.
Résultat bool

ExtractSyndicationFeedItems() public méthode

Extracts syndication feed items.
public ExtractSyndicationFeedItems ( Sdl.Web.Common.Configuration.Localization localization ) : IEnumerable
localization Sdl.Web.Common.Configuration.Localization The context .
Résultat IEnumerable

FilterConditionalEntities() public méthode

Filters (i.e. removes) conditional Entities which don't meet the conditions.
Applies to this Region and all its nested Regions.
public FilterConditionalEntities ( Sdl.Web.Common.Configuration.Localization localization ) : void
localization Sdl.Web.Common.Configuration.Localization The context Localization.
Résultat void

GetHashCode() public méthode

Serves as a hash function for a particular type.
public GetHashCode ( ) : int
Résultat int

GetXpmMarkup() public méthode

Gets the rendered XPM markup
public GetXpmMarkup ( Sdl.Web.Common.Configuration.Localization localization ) : string
localization Sdl.Web.Common.Configuration.Localization The context Localization.
Résultat string

RegionModel() public méthode

Initializes a new RegionModel instance.
public RegionModel ( string name ) : System.Collections.Generic
name string The name of the Region.
Résultat System.Collections.Generic

RegionModel() public méthode

Initializes a new RegionModel instance for an empty/non-existing Region.
public RegionModel ( string name, string qualifiedViewName ) : System.Collections.Generic
name string The name of the Region.
qualifiedViewName string The qualified name of the View to use to render the Region. Format: format AreaName:ControllerName:ViewName.
Résultat System.Collections.Generic

ToString() public méthode

Returns a string that represents the current object.
public ToString ( ) : string
Résultat string