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

Interface IViewContentRetriever

Retrieves a IContent instance for view usage with respect to shortcut and requested language

Namespace: EPiServer.Web
Assembly: EPiServer.dll
Version: 9.12.2
Syntax
public interface IViewContentRetriever

Methods

GetContent(ContentReference, CultureInfo)

Gets the IContent object with corresponding contentLink and culture

Declaration
IContent GetContent(ContentReference contentLink, CultureInfo culture)
Parameters
Type Name Description
ContentReference contentLink

The content link.

System.Globalization.CultureInfo culture

The language

Returns
Type Description
IContent

GetPage(PageReference, CultureInfo)

Gets a page that is shown in view mode by PageReference and culture.

Declaration
PageData GetPage(PageReference pageLink, CultureInfo culture)
Parameters
Type Name Description
PageReference pageLink

The page link to the page.

System.Globalization.CultureInfo culture

The language of 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.

If culture is null, AutoDetect(Boolean) is used.

Extension Methods