Exemplo n.º 1
0
        public static void UploadDependencyFile()
        {
            string folderServerRelativeUrl = "/sites/TestContosoPublishingSite/_catalogs/masterpage/Display Templates/Content Web Parts";
            string fileName                      = "Item_PictureOnTop_MyCustom.html";
            string localFilePath                 = @"E:\v-suamso\FTC-CAMSimulation\TransformationTool\TestingResults\UploadDependencyFile\Item_PictureOnTop_MyCustom.html";
            bool   overwriteIfExists             = true;
            string outPutDirectory               = @"E:\v-suamso\FTC-CAMSimulation\TransformationTool\TestingResults\UploadDependencyFile";
            string SharePointOnline_OR_OnPremise = "OP";
            string UserName                      = "******";
            string Password                      = "******";
            string Domain = "MGMT7";
            string webUrl = "https://intranet.poc.com/sites/TestContosoPublishingSite/";

            WebPartTransformationHelper webPartTransformationHelper = new WebPartTransformationHelper();

            webPartTransformationHelper.UploadDependencyFile(webUrl, folderServerRelativeUrl, fileName, localFilePath, overwriteIfExists, outPutDirectory, SharePointOnline_OR_OnPremise, UserName, Password, Domain);
        }
Exemplo n.º 2
0
        protected override void ProcessRecord()
        {
            WebPartTransformationHelper webPartTransformationHelper = new WebPartTransformationHelper();

            webPartTransformationHelper.UploadDependencyFile(WebUrl, FolderServerRelativeUrl, FileName, LocalFilePath, OverwriteIfExists, OutPutDirectory, SharePointOnline_OR_OnPremise, UserName, Password, Domain);
        }