Parse and return a PageReference from a string.

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

Syntax

C#
public static PageReference Parse(
	string s
)

Parameters

s
Type: System..::.String
The string, in the format pageID[_workID[_remoteSite]].

Return Value

The PageReference, or PageReference.EmptyReference if it's invalid

Exceptions

ExceptionCondition
EPiServer.Core..::.EPiServerExceptionIf string is not parsable as a pagereference

See Also