摘要:
protected void CreateDocLib(){SPSite site = SPContext.Current.Site;SPWeb web = site.OpenWeb(); SPListTemplateType templateType = SPListTemplateType.DocumentLibrary;Guid listId = web.Lists.Add("MyDocLibrary", null, templateType);SPList list = web.Lists[listId]; // create Text type new colum 阅读全文
摘要:
static void Main(string[] args) { string newPageUrl = ""; SPSecurity.RunWithElevatedPrivileges(delegate()// executing this code with elevated privileges will help whenever we create the publishing pages from a sharepoint portal site for an another portal site.If we create the publishing pa 阅读全文