locked
What is Sharepoint client side object model ? RRS feed

  • Question

  • What is Sharepoint client side object model ?
    • Edited by trulyChaitu Wednesday, March 11, 2015 1:55 PM
    Tuesday, February 24, 2015 8:19 AM

Answers

  • The client-side object model (CSOM) provides client-side applications with access to a subset of the SharePoint Foundation server object model, including core objects such as site collections, sites, lists, and list items. As described in Data Access for Client Applications, the CSOM actually consists of three distinct APIs—the ECMAScript object model, the Silverlight client object model, and the .NET managed client object model—that target distinct client platforms. The ECMAScript object model and the Silverlight client object model provide a smaller subset of functionality. This is designed to enhance the user experience, because it minimize the time it takes Silverlight applications or JavaScript functions running in a Web page to load the files required for operation. The .NET managed client object model provides a larger subset of functionality for standalone client applications. However, these APIs provide a broadly similar developer experience and work in a similar way.

    You can write both managed client object model code and JavaScript Client Object model code in Visual Studio. As an example, you can create a console application having managed client object model code. Similarly, you may create a Visual Web Part and have JavaScript client object model code in it. The JavaScript client object model code can also be directly written inside the SharePoint Designer as well.


    Blog | SharePoint Learnings CodePlex Tools | Export Version History To Excel | Autocomplete Lookup Field

    • Proposed as answer by Mokhtar Bepari Tuesday, February 24, 2015 8:54 AM
    • Marked as answer by Rebecca Tu Wednesday, March 4, 2015 5:13 AM
    Tuesday, February 24, 2015 8:33 AM

All replies

  • SharePoint 2010 provides the following client object model APIs

    - .Net Managed Applications

    - Sliverlight Applications

    - ECMA Script (JavaScript)

    Until you follow the basics of using ECMA script, any tool can be used for writing JavaScript to use the client APIs


    Ram Prasad Meenavalli | MCITP | MCTS SharePoint | MCPD SharePoint | http://www.spdeveloper.co.in

    Tuesday, February 24, 2015 8:33 AM
  • The client-side object model (CSOM) provides client-side applications with access to a subset of the SharePoint Foundation server object model, including core objects such as site collections, sites, lists, and list items. As described in Data Access for Client Applications, the CSOM actually consists of three distinct APIs—the ECMAScript object model, the Silverlight client object model, and the .NET managed client object model—that target distinct client platforms. The ECMAScript object model and the Silverlight client object model provide a smaller subset of functionality. This is designed to enhance the user experience, because it minimize the time it takes Silverlight applications or JavaScript functions running in a Web page to load the files required for operation. The .NET managed client object model provides a larger subset of functionality for standalone client applications. However, these APIs provide a broadly similar developer experience and work in a similar way.

    You can write both managed client object model code and JavaScript Client Object model code in Visual Studio. As an example, you can create a console application having managed client object model code. Similarly, you may create a Visual Web Part and have JavaScript client object model code in it. The JavaScript client object model code can also be directly written inside the SharePoint Designer as well.


    Blog | SharePoint Learnings CodePlex Tools | Export Version History To Excel | Autocomplete Lookup Field

    • Proposed as answer by Mokhtar Bepari Tuesday, February 24, 2015 8:54 AM
    • Marked as answer by Rebecca Tu Wednesday, March 4, 2015 5:13 AM
    Tuesday, February 24, 2015 8:33 AM