November Happy Hour will be moved to Thursday December 5th.

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.dll
Version: 9.12.2
Syntax
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.