SharePoint应用程序与功能
-
09-12-2019 - |
题
SharePoint 2013支持名为Apps的新类型解决方案。根据MSDN,应用程序是自包含的功能,易于安装,使用和更新。
我认为SharePoint功能也支持轻松安装和升级。一个功能可以包含自包含的功能,如Web部件或计时器作业。
然后,应用程序和功能或传统解决方案(农场或沙箱)之间的区别是什么?
解决方案
In an app:
- all the SharePoint artifacts you create (lists, pages, files) are located in a special sub site only for that app.
- all the code runs outside the SharePoint servers, can be client site, other servers or Azure
- for the code to access items in the original site/site collection, the app have to specify that in it's manifest and the installing user has to have these permissions and pass them to the app
- one app has absolutely no access to the data of another app
So the advantages for apps are:
- They are really separate from the site where they are installed which makes it easy to uninstall (can remove everything)
- Can't affect perfomance of SharePoint servers
- Can do more than you could in Sandboxed solutions
The disadvantage for apps are:
- Completely new development model, which at least in the beginning will be a lot harder.
- No way to combine apps to work together
其他提示
This article on MSDN goes into detail, but sums it up succinctly as : "Apps are for end users and farm solutions are for administrators." Sandbox solutions are deprecated with 2013, and generally the sort of thing that you would have previously used a Sandbox solution for should now be an app.