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

Interface IContentResolver

Interface used by PermanentLinkMapStore to resolve a content instance from an identity.

Namespace: EPiServer.Web
Assembly: EPiServer.dll
Version: 8.11.0
Syntax
public interface IContentResolver

Methods

ResolveContent(ContentReference)

Tries to resolve a Content from a ContentReference.

Declaration
ContentResolveResult ResolveContent(ContentReference contentLink)
Parameters
Type Name Description
ContentReference contentLink

The content link.

Returns
Type Description
ContentResolveResult

A ContentResolveResult with the identifiers for the content or null if no content was matched.

Remarks

It is important that the returned ContentReference in ContentLink is of correct type. That is if the content referenced is a PageData instance then it should be a PageReference and if the cotent is a global block it should be a ContentReference.

ResolveContent(Guid)

Tries to resolve a Content from a Guid identifier.

Declaration
ContentResolveResult ResolveContent(Guid contentGuid)
Parameters
Type Name Description
System.Guid contentGuid

The content GUID.

Returns
Type Description
ContentResolveResult

A ContentResolveResult with the identifiers for the content or null if no content was matched.

Extension Methods