客户端开发添加sharepoint凭证

//1.promise
ClientContext context = new ClientContext(siteUrl);
NetworkCredential myCredential = new NetworkCredential(account, securepassWord,[domin]);
context.Credentials = myCredential;

//2.online
ClientContext context = new ClientContext(siteUrl);
context.Credentials = new SharePointOnlineCredentials(account,securepassWord);

 

posted on 2019-04-17 13:32  赢在当下_Victor  阅读(258)  评论(0编辑  收藏  举报

导航