If you tried on content publishing before then you may ask if it is possible to trigger the content publishing job using CODE.
The answer is YES.
string centralAdminUrl = "http://office2007:15688";
SPSite adminSite = new SPSite(centralAdminUrl);
SPWeb adminWeb = adminSite.OpenWeb();
SPList pathList = adminWeb.Lists["Content Deployment Paths"]; ContentDeploymentPathCollection paths = new ContentDeploymentPathCollection(pathList.Items);
You can access various properties or method thru paths collection. It is as good as the list of path that you see in the content deployment page in central admin.
Refer here to find out more
Wednesday, June 3, 2009
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment