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(
	Guid pageGuid,
	out PageReference pageLink
)

Parameters

pageGuid
Type: System..::.Guid
The page GUID.
pageLink
Type: EPiServer.Core..::.PageReference %
The PageReference to the page with specified Guid based id

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;
}
pageLink = <the reference with ProviderKey set as RemoteSite>
return ConstructPageUri(pageTypeID, pageLink);

See Also