Пример #1
0
        protected override void ExecuteCmdlet()
        {
            if (!System.IO.Path.IsPathRooted(SourceFilePath))
            {
                SourceFilePath = System.IO.Path.Combine(SessionState.Path.CurrentFileSystemLocation.Path, SourceFilePath);
            }

            var masterPageFile = CurrentWeb.DeployMasterPage(SourceFilePath, Title, Description, UIVersion, DefaultCssFile, DestinationFolderHierarchy);

            WriteObject(masterPageFile);
        }