Showing posts with label Client Object Model. Show all posts
Showing posts with label Client Object Model. Show all posts
Thursday, December 26, 2013
Client Object Model with the Open XML SDK
The Microsoft SharePoint Foundation 2010 managed client object model enables you to write applications that are based on the Microsoft .NET Framework that access SharePoint content from clients without installing code on the server that runs SharePoint Foundation 2010.
The Open XML SDK 2.0 for Microsoft Office enables you to write applications to create, change, and query Open XML documents, the default document format for the Microsoft 2007 Office system and Microsoft Office 2010. By using these two technologies together you can write client-side applications that work with Open XML documents that are stored in document libraries.
more @ Using the SharePoint Foundation 2010 Managed Client Object Model with the Open SDK
Client-side classes and server-side equivalents
Client
|
Server
|
Notice that the SharePoint
Foundation 2010 managed client object model uses the same legacy naming pattern
for site collections and sites as the server object model.
The Site class represents site collections, and the Web class represents sites.
My preference for using
these classes is to name the variables so that the variable name indicates
whether it is a site collection or a site, even though you must use the Site and Web classes to declare them.
The following example shows how name
variables.
C#
ClientContext clientContext = new ClientContext(siteUrl);
Site siteCollection = clientContext.Site;
Web site = clientContext.Web;
Namespaces in the JavaScript Object Model
==========================================================================
Namespace JavaScript File
Namespace JavaScript File
==========================================================================
CUI Namespace CUI.js,
SP.UI.Rte.js
CUI.Controls Namespace CUI.js
CUI.Page Namespace CUI.js, SP.UI.Rte.js
SP Namespace SP.Core.js,
SP.js, SP.Ribbon.js, SP.Runtime.js
SP.ListOperation Namespace SP.Core.js
SP.Ribbon Namespace SP.Ribbon.js
SP.Ribbon.PageState Namespace SP.Ribbon.js
SP.UI Namespace SP.Core.js, SP.js,
SP.UI.Dialog.js
SP.Utilities Namespace SP.Core.js,
SP.js, SP.Exp.js
SP.WebParts Namespace SP.js
SP.Workflow Namespace SP.js
==========================================================================
Subscribe to:
Posts (Atom)