Class PageTransformator
Transforms a classic wiki/webpart page into a modern client side page
Inherited Members
Namespace: PnP.Framework.Modernization.Transform
Assembly: PnP.Framework.dll
Syntax
public class PageTransformator : BasePageTransformator
Constructors
PageTransformator(ClientContext)
Creates a page transformator instance
Declaration
public PageTransformator(ClientContext sourceClientContext)
Parameters
Client ClientContext of the site holding the page |
PageTransformator(ClientContext, ClientContext)
Creates a page transformator instance with a target destination of a target web e.g. Modern/Communication Site
Declaration
public PageTransformator(ClientContext sourceClientContext, ClientContext targetClientContext)
Parameters
Client ClientContext of the site holding the page |
Client ClientContext of the site that will receive the modernized page |
PageTransformator(ClientContext, ClientContext, PageTransformation)
Creates a page transformator instance
Declaration
public PageTransformator(ClientContext sourceClientContext, ClientContext targetClientContext, PageTransformation pageTransformationModel)
Parameters
Client ClientContext of the site holding the page |
Client ClientContext of the site that will receive the modernized page |
Page Page transformation model |
PageTransformator(ClientContext, ClientContext, String)
Creates a page transformator instance
Declaration
public PageTransformator(ClientContext sourceClientContext, ClientContext targetClientContext, string pageTransformationFile)
Parameters
Client ClientContext of the site holding the page |
Client ClientContext of the site that will receive the modernized page |
System. Used page mapping file |
PageTransformator(ClientContext, PageTransformation)
Creates a page transformator instance
Declaration
public PageTransformator(ClientContext sourceClientContext, PageTransformation pageTransformationModel)
Parameters
Client ClientContext of the site holding the page |
Page Page transformation model |
PageTransformator(ClientContext, String)
Creates a page transformator instance
Declaration
public PageTransformator(ClientContext sourceClientContext, string pageTransformationFile)
Parameters
Client ClientContext of the site holding the page |
System. Used page mapping file |
Methods
LoadPageTransformationModel(String)
Loads a page transformation model from file
Declaration
public static PageTransformation LoadPageTransformationModel(string pageTransformationFile)
Parameters
System. File holding the page transformation model |
Returns
Page Page transformation model |
SwapPages(PageTransformationInformation)
Declaration
public string SwapPages(PageTransformationInformation pageTransformationInformation)
Parameters
Page
|
Returns
System.
|
Transform(PageTransformationInformation)
Transform the page
Declaration
public string Transform(PageTransformationInformation pageTransformationInformation)
Parameters
Page Information about the page to transform |
Returns
System. The path to the created modern page |