Class ViewContentRetrieverExtensions
Inheritance
System.Object
ViewContentRetrieverExtensions
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.Web
Assembly: EPiServer.Cms.AspNet.dll
Version: 11.20.7Syntax
public static class ViewContentRetrieverExtensions
Methods
GetContent(IViewContentRetriever, ContentReference)
Gets the IContent object with corresponding contentLink
Declaration
public static IContent GetContent(this IViewContentRetriever viewContentRetreiver, ContentReference contentLink)
Parameters
Type | Name | Description |
---|---|---|
IViewContentRetriever | viewContentRetreiver | The retriever that is being extended |
ContentReference | contentLink | The content link. |
Returns
Type | Description |
---|---|
IContent |
GetPage(IViewContentRetriever, PageReference)
Gets a page that is shown in view mode by PageReference.
Declaration
public static PageData GetPage(this IViewContentRetriever viewContentRetreiver, PageReference pageLink)
Parameters
Type | Name | Description |
---|---|---|
IViewContentRetriever | viewContentRetreiver | The retriever that is being extended |
PageReference | pageLink | The page link to the page. |
Returns
Type | Description |
---|---|
PageData | The page shown in view mode |
Remarks
This method respects shortcuts between pages and returns the PageData of any page that a shortcut points to.