簡體   English   中英

如何驗證SharePoint用戶憑據

[英]How can I authenticate SharePoint user credentials

我需要從桌面應用程序(用C#編寫)訪問共享點應用程序。 我應該如何通過憑據和驗證身份驗證?

1.將WebService引用(名稱:SourceLists)添加到項目(Web服務URL https://……./sites/_vti_bin/lists.asmx)。2. SourceLists.Lists sourceListService = new SourceLists.Lists();

System.Net.NetworkCredential networkCredentials =新的System.Net.NetworkCredential(“ userid”,“ pwd”);

sourceListService.Credentials = networkCredentials;

也許你會發現一個方便的參考。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM