Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/sharepoint/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Asp.net mvc 在MVC中访问sharepoint 2007 mySite链接_Asp.net Mvc_Sharepoint - Fatal编程技术网

Asp.net mvc 在MVC中访问sharepoint 2007 mySite链接

Asp.net mvc 在MVC中访问sharepoint 2007 mySite链接,asp.net-mvc,sharepoint,Asp.net Mvc,Sharepoint,我正在MVC中开发一个内部站点,以显示来自SharePoint2007站点的一些信息 在share point中,每个用户在顶部导航上都有一个MySite和MyLink。 我需要访问我的链接并将它们存储在列表中,以便在我的应用程序中使用它们。 我怎样才能做到这一点 注意:我是sharepoint新手,对此没有什么想法 任何能帮我找到正确方向的人都会很有帮助 谢谢你我对MVC没有任何想法,但是像这样的东西应该适合你 using Microsoft.Office.Server; using Micr

我正在MVC中开发一个内部站点,以显示来自SharePoint2007站点的一些信息

在share point中,每个用户在顶部导航上都有一个MySite和MyLink。 我需要访问我的链接并将它们存储在列表中,以便在我的应用程序中使用它们。 我怎样才能做到这一点

注意:我是sharepoint新手,对此没有什么想法

任何能帮我找到正确方向的人都会很有帮助


谢谢你

我对MVC没有任何想法,但是像这样的东西应该适合你

using Microsoft.Office.Server;
using Microsoft.Office.Server.UserProfiles;


UserProfileManager userProfileManager = new UserProfileManager(ServerContext.Current);
UserProfile currentUser = userProfileManager.GetUserProfile(true);
QuickLinkManager quickLinkManager = currentUser.QuickLinks;



foreach (QuickLink quickLink in quickLinkManager.GetItems())
{
    Console.WriteLine(quickLink.Url);
}
不要忘记添加对Microsoft.Sharepoint的引用,以及添加名称空间
Microsoft.Sharepoint
Microsoft.Sharepoint.Administration

编辑
从以下路径添加对Microsoft.Sharepoint的引用
C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12

尝试浏览
Microsoft.Sharepoint
dll。在这方面你会发现很多有用的课程。您可以在12配置单元中找到此DLL。我正在浏览sharepoint,发现sharepoint提供的服务作为“添加”服务GetUserLinks。我可以使用此服务获取用户链接吗?我猜命名空间
Microsoft。sharepoint
应该可以帮到您。我必须检查什么??