其他分享
首页 > 其他分享> > 客户端开发添加sharepoint凭证

客户端开发添加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);

 

标签:account,siteUrl,凭证,sharepoint,securepassWord,context,new,客户端,ClientContext
来源: https://www.cnblogs.com/learning-life/p/10722958.html