ReplaceWebPart() public method

public ReplaceWebPart ( string webUrl, string targetWebPartFileName, string targetWebPartXmlFile, string sourceWebPartStorageKey, string webPartZoneIndex, string webPartZoneID, string serverRelativePageUrl, string outPutDirectory, string SharePointOnline_OR_OnPremise = "N/A", string UserName = "N/A", string Password = "N/A", string Domain = "N/A", string ActionType = "", string sourceWebPartId = "" ) : bool
webUrl string
targetWebPartFileName string
targetWebPartXmlFile string
sourceWebPartStorageKey string
webPartZoneIndex string
webPartZoneID string
serverRelativePageUrl string
outPutDirectory string
SharePointOnline_OR_OnPremise string
UserName string
Password string
Domain string
ActionType string
sourceWebPartId string
return bool
 protected override void ProcessRecord()
 {
     WebPartTransformationHelper webPartTransformationHelper = new WebPartTransformationHelper();
     webPartTransformationHelper.ReplaceWebPart(WebUrl, TargetWebPartFileName, TargetWebPartXmlFile, SourceWebPartStorageKey, WebPartZoneIndex, WebPartZoneID, ServerRelativePageUrl, OutPutDirectory, SharePointOnline_OR_OnPremise, UserName, Password, Domain, "web");
 }