Table of Contents

Interface IWebPageDataContextRetriever

Namespace
Kentico.Content.Web.Mvc
Assembly
Kentico.Content.Web.Mvc.dll

Retrieves data context of the current web page.

public interface IWebPageDataContextRetriever
Extension Methods

Methods

Retrieve()

Retrieves the current page data context.

WebPageDataContext Retrieve()

Returns

WebPageDataContext

TryRetrieve(out WebPageDataContext)

Tries to retrieve the current web page data context.

bool TryRetrieve(out WebPageDataContext data)

Parameters

data WebPageDataContext

The current web page data context if the retrieval is successful.

Returns

bool

Returns true if the current web page data context retrieval is successful.