Convert a page to a new page type

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

Syntax

C#
public static string Convert(
	PageReference pageLink,
	PageType fromPageType,
	PageType toPageType,
	List<KeyValuePair<int, int>> propertyTypeMap,
	bool recursive,
	bool isTest
)

Parameters

pageLink
Type: EPiServer.Core..::.PageReference
The link to the page which will be conversion will start
fromPageType
Type: EPiServer.DataAbstraction..::.PageType
The page type to convert from
toPageType
Type: EPiServer.DataAbstraction..::.PageType
Type page type to convert to
propertyTypeMap
Type: System.Collections.Generic..::.List<(Of <(KeyValuePair<(Of <(Int32, Int32>)>)>)>)
"from"-"to" mappings of properties , the mapped properties has to be on the same base form
recursive
Type: System..::.Boolean
if set to true the conversion will be performed for all subpages as well
isTest
Type: System..::.Boolean
if set to true the conversion will not actually be performed bur rather a test run to see effect will be performed

Return Value

See Also