随笔分类 - Sharepoint2010 Client Object Model
摘要:方法一:用C# 代码,可以用于Silverlight: public void GetCurrentUser() { ClientContext context = new ClientContext("http://localhost"); Web site = context.Web; //context.Load(site); //context.ExecuteQuery(); if (site != null) { User user = site.CurrentUser; context.Load(user); context.ExecuteQuery(); string userN
阅读全文
摘要:ECMAScript Client :1. 在 SP.js 里有许多现成的方法操纵 Sharepoint对象, 路径:C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\LAYOUTS;2. 具体代码可以看: SharePoint 2010 - Client Object Model - ECMAScript - Introduction on how to use
阅读全文
摘要:Silverlight Client:1. 添加引用, Add Reference: Microsoft.SharePoint.Client.Silverlight.dll; Microsoft.SharePoint.Client.Silverlight.Runtime.dll. 路径:C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\LAYOUTS\ClientBin;2. code 与 Managed Client code 类似, 具体代码可以看:SharePoi
阅读全文
摘要:Managed Client:1. 需要添加引用: Add Reference: Microsoft.SharePoint.Client.dll; Microsoft.SharePoint.Client.Runtime.dll 路径:一般情况下在:C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\ISAPI;2. 可以使用的Class: 客户端 服务器 ClientContext SPContext Site SPSite Web SPWeb List SPList ListItem SPListI
阅读全文
摘要:SharePoint 2010 - Complete details about Client Object Model This is the introduction to the Client Object model introduced in the SharePoint 2010. This is going to be a huge help and useful part in SharePoint 2010 for developers and makes lot of customization to the existing SharePoint system.In ea
阅读全文

浙公网安备 33010602011771号