Web services 关于Web\u参考\u文件夹

Web services 关于Web\u参考\u文件夹,web-services,sharepoint,Web Services,Sharepoint,我看到Sharepoint代码示例中使用了Web_Reference_文件夹,但不知道它是什么 什么是Web\u参考\u文件夹? 和 我如何访问或使用它 来自()的代码示例: 看看这个,也许有帮助 文章中有关Web\u参考\u文件夹的一些上下文: Web\u引用\u文件夹\u名称表示用于 对Visual Studio.NET中Web服务的引用,以及服务名称 表示提供可调用方法的类的名称 通过Web服务 如果要在代码中使用SharePoint web services,则必须在项目中添加该服务的w

我看到Sharepoint代码示例中使用了Web_Reference_文件夹,但不知道它是什么

什么是Web\u参考\u文件夹? 和 我如何访问或使用它

来自()的代码示例:

看看这个,也许有帮助

文章中有关Web\u参考\u文件夹的一些上下文:

Web\u引用\u文件夹\u名称表示用于 对Visual Studio.NET中Web服务的引用,以及服务名称 表示提供可调用方法的类的名称 通过Web服务


如果要在代码中使用SharePoint web services,则必须在项目中添加该服务的web引用。通常通过右键单击>添加web引用,然后提供
http:///_vti_bin/Lists.asmx?wsdl
。这将生成一个新的web引用文件夹,其中包含可以用来调用服务的适当类

现在假设您在添加web引用时使用了name
localhost
,它将在您的项目中的web引用下添加localhost文件夹

因此,在这种情况下,您的代码应该是
localhost.listsListService=new localhost.Lists()

Web_Reference_Folder.Lists listService = new Web_Reference_Folder.Lists();
listService.Credentials = System.Net.CredentialCache.DefaultCredentials;
string fileCheckout = "http://Server_Name/sites/Subsite/Shared Documents/MyFile.txt";