PublishXmlRequest request = new PublishXmlRequest()
{
ParameterXml = String.Format(@"<importexportxml><webresources><webresource>{0}</webresource></webresources></importexportxml>", webResource.WebResourceId)
};
service.Execute(request);
webResource.WebResourceId=This is the Guid of Webresource
Please make sure that if you are using this code in PlugIn then you should register the PlugIn in Asynchnronous mode.
if you want to Publish all customization then
PublishAllXmlRequest publishRequest = new PublishAllXmlRequest();
service.Execute(publishRequest);
No comments:
Post a Comment