C# Class JDP.Remediation.Console.ReplaceMasterPage

显示文件 Open project: OfficeDev/PnP-Transformation Class Usage Examples

Public Properties

Property Type Description
filePath string
outputPath string
timeStamp string

Public Methods

Method Description
DoWork ( ) : void
ProcessWebUrl ( string webUrl, DataRow drMasterPage, bool replaceMasterUrl, bool replaceCustomMasterUrl, bool replaceBothMaserUrls ) : bool

Private Methods

Method Description
ProcessInputFile ( string masterPageInputFile, bool replaceMasterUrl, bool replaceCustomMasterUrl, bool replaceBothMaserUrls, string outputDirectory ) : void
ReadCustomOOBMasterPages ( string &customMasterPage, string &oobMasterPage ) : void
ReadInputFile ( string &masterPageInputFile ) : bool
ReadInputOptions ( bool &processInputFile, bool &processWebUrl ) : bool
ReadMasterUrlReplaceOptions ( bool &replaceMasterUrl, bool &replaceCustomMasterUrl, bool &replaceBothMasterUrls ) : bool
ReplaceMasterUrl ( ClientContext ctx, string oobMasterPageUrl, string serverRelativeUrl, bool replaceMasterUrl, bool replaceCustomMasterUrl, bool replaceBothMasterUrls ) : bool

Method Details

DoWork() public static method

public static DoWork ( ) : void
return void

ProcessWebUrl() public static method

public static ProcessWebUrl ( string webUrl, DataRow drMasterPage, bool replaceMasterUrl, bool replaceCustomMasterUrl, bool replaceBothMaserUrls ) : bool
webUrl string
drMasterPage System.Data.DataRow
replaceMasterUrl bool
replaceCustomMasterUrl bool
replaceBothMaserUrls bool
return bool

Property Details

filePath public_oe static_oe property

public static string filePath
return string

outputPath public_oe static_oe property

public static string outputPath
return string

timeStamp public_oe static_oe property

public static string timeStamp
return string