C# Class JDP.Remediation.Console.GenerateNonDefaultMasterPageUsageReport

Show file Open project: OfficeDev/PnP-Transformation Class Usage Examples

Public Properties

Property Type Description
filePath string
headermasterPage bool
outputPath string

Public Methods

Method Description
DoWork ( ) : void

Private Methods

Method Description
ProcessSite ( string siteUrl, string NonDefMasterFileName ) : void

Executes all site collection-level reporting. Performs special processing for the site collection, then processes all child webs.

ProcessWeb ( string webUrl, bool isRoot, string SiteURL, string NonDefMasterFileName ) : void

Executes all web-level transformations related to the custom solution. Performs special processing for the root web, then recurses through all child webs.

ShowInformation ( ) : bool

Method Details

DoWork() public static method

public static DoWork ( ) : void
return void

Property Details

filePath public static property

This method reports on the usage of custom master pages. General Approach: - disable site feature: V4VisualUpgrade - note: the feature deactivator processes MPs of all child webs - process webs - delete custom hidden list: Lists/RedirectURL - disable web feature: Redirect Url List - disable web features: custom Master Pages (6) - delete custom master page files
public static string filePath
return string

headermasterPage public static property

public static bool headermasterPage
return bool

outputPath public static property

public static string outputPath
return string