CSOM vs JSOM vs SSOM vs REST
Sharepoint 2013
Model Types:
- CSOM Client-side object model. C# (or Visual Basic) only
- JSOM JavaScript object model. JavaScript only.
SP.ClientContext.get_current()
for normal use. new SP.ClientContext('url...')
for specific SPSite
. Note this works cross-SPSite in 2013.
- SSOM Server-side object model.
- REST REST web technologies and standard Open Data Protocol (OData) syntax.
- Either JS (JavaScript) or C# (or Visual Basic)
Technologies table:
|
CSOM
|
JSOM
|
SSOM
|
REST JS
|
REST C#
|
JavaScript
|
|
|
|
|
|
C#
|
|
|
|
|
|
From browser
|
|
|
|
|
|
From server
|
|
|
|
|
|
OAuth2
|
|
|
|
|
|
S2S
|
|
|
|
|
|
Hosting table:
|
CSOM
|
JSOM
|
SSOM
|
REST JS
|
REST C#
|
SharePoint hosted
|
|
|
|
|
|
Autohosted
|
|
|
|
|
|
Provider hosted
|
|
|
|
|
|
Sandboxed solution
|
|
|
(Limited) |
|
|
Farm solution
|
|
|
|
|
|
No comments:
Post a Comment