Window 8 consuming SharePoint REST Interface through FormsAuthentication?

谁说我不能喝 提交于 2019-12-10 11:01:32

问题


I have created a sample Windows 8 Application getting SharePoint 2010 list data using REST Apis like _vti_bin/ListData.svc I am using NetworkCredential to access the list its working fine. How can I achieve the same results using FormsAuthentication? Code for NetworkCredential:

 context = new CentralAdministrationDataContext(new Uri("http://<SharePoint_URL>/_vti_bin/ListData.svc"));
            NetworkCredential credentials = new NetworkCredential();
            context.UseDefaultCredentials = false;
            context.Credentials = new NetworkCredential("UserName", "Password");

来源:https://stackoverflow.com/questions/14645268/window-8-consuming-sharepoint-rest-interface-through-formsauthentication

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!