c# sharepoint client object model 创建工作流历史记录

ClientTools tools = new ClientTools();
ClientContext clientContext= tools.GetContext(OnlineSiteUrl, User, Pass, true); //false 本地 true ONline

Web web = clientContext.Site.OpenWeb("WebUrl");
clientContext.Load(web);
clientContext.ExecuteQuery();
clientContext.Dispose();

ListCreationInformation creationInfo = new ListCreationInformation();
creationInfo.Title = "工作流历史记录";
creationInfo.Url = "WorkflowHistory";
creationInfo.Description = "Description";
creationInfo.TemplateType = (Int32)ListTemplateType.WorkflowHistory;

list ourHistoryList = web.Lists.Add(creationInfo);
ourHistoryList.Update();
clientContext.ExecuteQuery();
clientContext.Load(ourHistoryList);
clientContext.ExecuteQuery();

c# sharepoint client object model 创建工作流历史记录

上一篇:Sql_Server中如何判断表中某列是否存在


下一篇:sql语句执行顺序