Microsoft SharePoint 2010 Software Development Kit (SDK) introduces three new client APIs that allow you to interact with SharePoint sites from script that executes in the browser
1. from code (no earlier than Microsoft .NET Framework 3.5) that executes in a .NET managed application, or
2. from code that executes in a Microsoft Silverlight 2.0 application.
3.; The new ECMAScript (JavaScript, JScript),
The following table shows the equivalent objects that the new APIs provide for common SharePoint Foundation 2010 server objects.
Server
|
.NET Managed and Silverlight
|
JavaScript
|
---|---|---|
Microsoft.SharePoint.SPContext
|
Microsoft.SharePoint.Client.ClientContext
|
SP.ClientContext
|
Microsoft.SharePoint.SPSite
|
Microsoft.SharePoint.Client.Site
|
SP.Site
|
Microsoft.SharePoint.SPWeb
|
Microsoft.SharePoint.Client.Web
|
SP.Web
|
Microsoft.SharePoint.SPList
|
Microsoft.SharePoint.Client.List
|
SP.List
|
Microsoft.SharePoint.SPListItem
|
Microsoft.SharePoint.Client.ListItem
|
SP.ListItem
|
Microsoft.SharePoint.SPField (including major derived classes)
|
Microsoft.SharePoint.Client.Field
|
SP.Field
|
Microsoft.SharePoint.WebPartPages.SPLimitedWebPartManager
|
Microsoft.SharePoint.Client.WebParts.LimitedWebPartManager
|
SP.WebParts.LimitedWebPartManager
|
The new client APIs do not provide administration objects or objects that are scoped higher than site collection: SPSite class in the server object model.
No comments:
Post a Comment