If the passed in identifier corresponds with an identifier for a page served by the page provider then the implementation should return the internal ("classic") link to the page and set PageReference identifier. The URI can be constructed by helper method ConstructPageUri(Int32, PageReference). This typically maps to PageLink, PageGuid and LinkUrl properties for a PageData instance.

Namespace:  EPiServer.Core
Assembly:  EPiServer (in EPiServer.dll) Version: 5.2.375.236

Syntax

C#
protected abstract Uri ResolveLocalPage(
	PageReference pageLink,
	out Guid guid
)

Parameters

pageLink
Type: EPiServer.Core..::.PageReference
The PageReference to the page
guid
Type: System..::.Guid %
The guid based identifier for the page

Return Value

the "classic" Uri for the page.

Remarks

Implementations of resolving methods must not call GetPage during resolving since that can cause infinite recursion.

Examples

The following pseudo code shows how an implentation could look:
CopyC#
if (noMatch)
{
    return null;
}
guid = <the guid reference for the specified page>
pageLink = <the reference with ProviderKey set as RemoteSite>
return ConstructPageUri(pageTypeID, pageLink);

See Also