Class PageDataExtensions
Inheritance
System.Object
PageDataExtensions
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.Cms.AspNet.dll
Version: 11.20.7Syntax
public static class PageDataExtensions
Methods
GetPageLanguage(PageData, String)
Get a page in the requested language.
Declaration
public static PageData GetPageLanguage(this PageData page, string languageBranchId)
Parameters
Type | Name | Description |
---|---|---|
PageData | page | The page |
System.String | languageBranchId | The language branch id. |
Returns
Type | Description |
---|---|
PageData | PageData in requested language or |
HasTemplate(PageData)
Determines whether the specified content data has template.
Declaration
public static bool HasTemplate(this PageData pageData)
Parameters
Type | Name | Description |
---|---|---|
PageData | pageData | The page data. |
Returns
Type | Description |
---|---|
System.Boolean |
|
IsVisibleOnSite(PageData)
Determines whether the specified content data is visible on site.
Declaration
public static bool IsVisibleOnSite(this PageData page)
Parameters
Type | Name | Description |
---|---|---|
PageData | page | The page data. |
Returns
Type | Description |
---|---|
System.Boolean |
|