Contents
The web services offer similar functionality compared to the SharePoint API, although not every function is covered. In SharePoint 2010, you have another option when programming against SharePoint data: the Client Object Model. The Client Object Model is a new approach to remotely programming against SharePoint data.
The Microsoft.SharePoint API supports the most common objects, such as sites, webs, content types, lists, folders, navigations, and workflows. Obviously, this is not an exhaustive list. So, how do you find out if a particular object is supported in the Client Object Model?
Can a web service use the object model?
The Web services do provide access to the object model but their scope is limited and developers have to either constrain their goals or rely on external API’s, such as JQuery, when dealing with scenarios such as the manipulation of SharePoint data after a page has been loaded.
As an example, you can use an editor such as a content editor Web Part to access and manipulate SharePoint objects by using JSOM. For instance, SharePoint 2010 uses JSOM extensively for its own usage; an example of this is the new modal dialog introduced in SharePoint 2010.
When you run code directly on the SharePoint server, the SharePoint API gives you complete control over all aspects of SharePoint 2010 and the data. If your application is not running on the server and needs to access the SharePoint data, you need to use the SharePoint web services.
Where can I find the SharePoint client documentation?
Fortunately, the help documentation for SharePoint 2010 is very good, and you can find the complete list by looking at the Microsoft.SharePoint.Client Namespace on MSDN. Another way to find out if a particular object is supported is to look at the attributes on the Microsoft.SharePoint API.
However, support for accessing SharePoint data from the client is limited to the use of various Web services.
I think of a workaround by using SharePoint Object Modal to programmatically sign off the current login user (SPContext.Current.Web.CurrentUser) on SignOut.aspx, is this possible? Any reply is much appreciated. thank you. Update: Anyone has solution??
Is there a sign out button for SharePoint 2007?
I’ve an application build on SharePoint 2007 platform, the problem is in Mozilla FireFox, the sign out button does not successfully sign out the current login user, I believe SharePoint 2007 is not fully compatible with FireFox.