简体   繁体   English

应该在VS2010中创建哪个sharepoint项目?

[英]which sharepoint project should be created in VS2010?

I want to get some useful data from *.csv file through the retrieve query, then put these data in the reference column of the sharepoint list using the admin account. 我希望通过检索查询从* .csv文件中获取一些有用的数据,然后使用admin帐户将这些数据放入sharepoint列表的引用列中。

Which sharepoint project in VS2010 should I choose? 我应该选择VS2010中的哪个sharepoint项目? And what should I do in next? 接下来我该怎么办?

Thanks 谢谢

如果我是要从 *.csv 文件中取一些数据 ,然后放到sharepoint上, 应该选择哪种工程呢?然后接下来应该怎么做呢? 如果我是要从* .csv文件中取一些数据,然后放到sharepoint上,应该选择哪种工程呢?然后接下来应该怎么做呢?

谢谢 谢谢

If you only need to run this job once you could create a console application and let it run on the server. 如果您只需要创建一个控制台应用程序并让它在服务器上运行,则只需要运行此作业。 Include a reference to the Microsoft.SharePoint.dll to be able to use the Object Model of SharePoint. 包含对Microsoft.SharePoint.dll的引用,以便能够使用SharePoint的对象模型。 See http://msdn.microsoft.com/en-us/library/ms473633.aspx for an overview of the different objects you can use. 有关可以使用的不同对象的概述,请参见http://msdn.microsoft.com/en-us/library/ms473633.aspx (SharePoint 2010) (SharePoint 2010)

If you have no access to the server you could try the same using the webservices that sharepoint exposes. 如果您无法访问服务器,则可以使用sharepoint公开的Web服务尝试相同的操作。 See http://msdn.microsoft.com/en-us/library/ms479390(v=office.12).aspx for a list of the webservices in WSS3.0 有关WSS3.0中的Web服务列表,请参见http://msdn.microsoft.com/en-us/library/ms479390(v=office.12).aspx

But if you need it be done regularly your better of creating a webpart or a custom service to include into SharePoint. 但是,如果您需要定期完成,则最好创建一个包含在SharePoint中的Web部件或自定义服务。 See http://msdn.microsoft.com/en-US/sharepoint/ee513148.aspx for an intro on building a WebPart for SP2010. 有关为SP2010构建WebPart的介绍,请参见http://msdn.microsoft.com/en-US/sharepoint/ee513148.aspx

Google around, there is a lot to find about interaction with sharepoint through its object model. 谷歌周围,有很多关于通过其对象模型与sharepoint交互的信息。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM