Class PageTypeConverter
Converts page type for pages
Inheritance
System.Object
PageTypeConverter
Namespace: EPiServer.Core
Assembly: EPiServer.dll
Version: 12.0.3Syntax
public static class PageTypeConverter : Object
Methods
Convert(PageReference, PageType, PageType, List<KeyValuePair<Int32, Int32>>, Boolean, Boolean)
Convert a page to a new page type
Declaration
public static string Convert(PageReference pageLink, PageType fromPageType, PageType toPageType, List<KeyValuePair<int, int>> propertyTypeMap, bool recursive, bool isTest)
Parameters
Type | Name | Description |
---|---|---|
Page |
pageLink | The link to the page which will be conversion will start |
Page |
fromPageType | The page type to convert from |
Page |
toPageType | Type page type to convert to |
System. |
propertyTypeMap | "from"-"to" mappings of properties , the mapped properties has to be on the same base form |
System. |
recursive | if set to |
System. |
isTest | if set to |
Returns
Type | Description |
---|---|
System. |
Events
PagesConverted
Raised when pages are converted from one pagetype to another.
Declaration
public static event EventHandler<ConvertedPageEventArgs> PagesConverted
Event Type
Type | Description |
---|---|
System. |