博客地址:http://blog.csdn.net/FoxDave

虽说是翻译,但是并没什么翻译的,主要内容就是说有一些能通过Server API配置的Site/Web属性在CSOM中找不到,其实是隐藏到了AllProperties这个属性里,它是一个键值对。如果想查看都有哪些属性可以用SharePoint Online Client Browser工具或者访问http://host/site/_api/web/allProperties这个URL查看。

下面附上原文和属性的对应关系。

Recently I was trying to configure some site properties via CSOM using PowerShell and I discovered that for many of the site/web properties that you could modify via the server side API were not available in CSOM.  It took a bit of head scratching before I found the answer.

So, it turns out that most Site/Web properties that are related/tied to features will only be accessible via the Site/Web Property Bag.  Ok, so where can we find the reference for all the Property Bag keys and values…ya, after much searching, blood, and tears, I couldn’t find it (as of this writting).  So I’m sure MS will unceremoniously post it one of these days, please notify me when that happens.  Until then, below is a working breakout of all the Property Bag keys and example values I could find.

You can get a breakout of all the Property Bag keys and values on your site by opening this URL [http://host/site/_api/web/allProperties] in your browser.

Again, this is a working breakout, so please notify me as you see errors or you find keys and/or values I might have missed.

PROPERTY FRIENDLY NAME KEY
KEY: allowdesigner
  • TYPE: int
  • VALUE EXAMPLE: 1
KEY: allowmasterpageediting
  • TYPE: int
  • VALUE EXAMPLE: 1
KEY: allowrevertfromtemplate
  • TYPE: int
  • VALUE EXAMPLE: 1
KEY: allowslistpolicy
  • TYPE: bool
  • VALUE EXAMPLE: TRUE
KEY: Community_MembersCount
  • TYPE: int
  • VALUE EXAMPLE: 1
KEY: Community_RepliesCount
  • TYPE: int
  • VALUE EXAMPLE: 1
KEY: Community_TopicsCount
  • TYPE: int
  • VALUE EXAMPLE: 1
KEY: disabledhelpcollections
  • VALUE EXAMPLE: WSSEndUser;#WSSCentralAdmin;#FastEndUser;#FastCentralAdmin;#MSSEndUser;#MSSCentralAdmin;#PPSDesignerEndUser;#SQLWSSAddIn
KEY: dlc_sitehasexpirationpolicy
  • TYPE: bool
  • VALUE EXAMPLE: TRUE
KEY: dlc_sitehaspolicy
  • TYPE: bool
  • VALUE EXAMPLE: TRUE
KEY: dlc_webhasexpirationpolicy
  • TYPE: bool
  • VALUE EXAMPLE: TRUE
KEY: enabledhelpcollections
  • VALUE EXAMPLE: VGSEndUser;#SPOLite
KEY: FollowLinkEnabled
  • TYPE: bool
  • VALUE EXAMPLE: TRUE
KEY: helplibraryurl
  • TYPE: string:SiteRelPath
  • VALUE EXAMPLE: Lists/Site Collection Help
KEY: htmldesignviewnamealldevicechannelssimplelisting
  • TYPE: guid
KEY: htmldesignviewnamedesigntemplates
  • TYPE: guid
KEY: htmldesignviewnamehtmldesignfiles
  • TYPE: guid
KEY: htmldesignviewnamehtmldesignsandrelatedfiles
  • TYPE: guid
KEY: htmldesignviewnamehtmlmasterpages
  • TYPE: guid
KEY: htmldesignviewnamehtmlpagelayouts
  • TYPE: guid
KEY: Microsoft.SharePoint.WorkflowServices.SPWebApplicationIdentifier
KEY: Microsoft.SharePoint.WorkflowServices.SPWebScopeProperties
  • TYPE: string
  • VALUE EXAMPLE 1: Pacific Standard Time;-480;(UTC-08:00) Pacific Time (US & Canada);Pacific Standard Time;Pacific Daylight Time;[01:01:0001;12:31:2006;60;[0;02:00:00;4;1;0;];[0;02:00:00;10;5;0;];][01:01:2007;12:31:9999;60;[0;02:00:00;3;2;0;];[0;02:00:00;11;1;0;];];UTC;0;UTC;UTC;UTC;;en-US
  • VALUE EXAMPLE 2: Eastern Standard Time;-300;(UTC-05:00) Eastern Time (US & Canada);Eastern Standard Time;Eastern Daylight Time;[01:01:0001;12:31:2006;60;[0;02:00:00;4;1;0;];[0;02:00:00;10;5;0;];][01:01:2007;12:31:9999;60;[0;02:00:00;3;2;0;];[0;02:00:00;11;1;0;];];UTC;0;UTC;UTC;UTC;;en-US
KEY: Microsoft.SharePoint.WorkflowServices.SPWebScopeUri
KEY: OData___AllowExternalEmbedding
  • TYPE: int
  • VALUE EXAMPLE: 1
KEY: OData___CacheProfileListId
  • TYPE: guid
KEY: OData___CurrentDynamicChildLimit
  • TYPE: int
  • VALUE EXAMPLE: 20
KEY: OData___CurrentNavigationExcludes
  • TYPE: guid
KEY: OData___CurrentNavigationIncludeTypes
  • TYPE: int
  • VALUE EXAMPLE: 0
KEY: OData___DefaultPageLayout
  • TYPE: string
  • VALUE EXAMPLE: <layout guid=”d291ae7d-81dc-411e-a2b9-c9a201193255″ url=”_catalogs/masterpage/PageFromDocLayout.aspx” />
KEY: OData___DisplayShowHideRibbonActionId
  • TYPE: bool
  • VALUE EXAMPLE: TRUE
KEY: OData___DocumentsListId
  • TYPE: guid
KEY: OData___GlobalDynamicChildLimit
  • TYPE: int
  • VALUE EXAMPLE: 20
KEY: OData___GlobalNavigationExcludes
  • TYPE: guid
KEY: OData___GlobalNavigationIncludeTypes
  • TYPE: int
  • VALUE EXAMPLE: 0
KEY: OData___ImagesListId
  • TYPE: guid
KEY: OData___NavigationOrderingMethod
  • TYPE: int
  • VALUE EXAMPLE: 2
KEY: OData___NoMobileMappingf300e892f08347d4b47b1a32e65f7ba6
  • TYPE: bool
  • VALUE EXAMPLE: TRUE
KEY: OData___PagesListId
  • TYPE: guid
KEY: OData___PublishingFeatureActivated
  • TYPE: bool
  • VALUE EXAMPLE: TRUE
KEY: OData___PublishingFeatureMdsDisabled
  • TYPE: bool
  • VALUE EXAMPLE: TRUE
KEY: OData___ScriptSafeInternalPages
  • TYPE: string:filename[]
  • VALUE EXAMPLE: WopiFrame.aspx;videoembedplayer.aspx;
KEY: OData___SiteColDocumentsListId
  • TYPE: guid
KEY: OData___SiteColImagesListId
  • TYPE: guid
KEY: OData__auditlogreportstoragelocation
  • TYPE: string:RelPath
  • VALUE EXAMPLE: /sites/xyz/Shared Documents
KEY: OData__auditlogtrimmingcallout
  • TYPE: string:DLLStrongName
  • VALUE EXAMPLE: Microsoft.Office.RecordsManagement.Reporting.AuditLogTrimmingReportCallout Microsoft.Office.Policy Version=15.0.0.0 Culture=neutral PublicKeyToken=71e9bce111e9429c
KEY: OData__auditlogtrimmingretention
  • TYPE: int
  • VALUE EXAMPLE: 0
KEY: OData__holds_list_cache_
  • TYPE: string
  • VALUE EXAMPLE: ;[local]/departments/legal/records/Lists/Holds
KEY: OData__PublishedLinksListId
  • TYPE: guid
KEY: OData__ReusableContentListId
  • TYPE: guid
KEY: OData__SmtReportsListId
  • TYPE: guid
KEY: OData__VarLabelsListId
  • TYPE: guid
KEY: OData__VarRelationshipsListId
  • TYPE: guid
KEY: OData__VTI_ACCESSREQUESTSLISTID
  • TYPE: int
KEY: OData__VTI_PENDINGREQUESTSVIEWID
  • TYPE: string:RelPath
  • VALUE EXAMPLE: /Access Requests/pendingreq.aspx
KEY:
    profileschemaversion
  • TYPE: int
  • VALUE EXAMPLE: 6
KEY: SaveSiteAsTemplateEnabled
  • TYPE: bool
  • VALUE EXAMPLE: FALSE
KEY: seocanonicallinkparameterlistpropertyname
KEY: seocustommetatagpropertyname
KEY: seoenablecanonicallinkparameterspropertyname
  • TYPE: bool
  • VALUE EXAMPLE: FALSE
KEY: seoincludecustommetatagpropertyname
  • TYPE: bool
  • VALUE EXAMPLE: FALSE
KEY: seositemapgeneratedpropertyname
  • TYPE: bool
  • VALUE EXAMPLE: TRUE
KEY: sharepointhelpoverride
  • TYPE: string
  • VALUE EXAMPLE 1: SPOLite
  • VALUE EXAMPLE 2: SPOStandard
KEY: showurlstructure
  • TYPE: int
  • VALUE EXAMPLE: 1
KEY: SiteCollectionGroupIdf5d847c7_x002d_3f02_x002d_4b79_x002d_a0d1_x002d_cc182cef3aa6
  • TYPE: guid
Search Center URL KEY: SRCH_ENH_FTR_URL
  • TYPE: string:RelPath
  • VALUE EXAMPLE: /sites/xyz/SearchCenter/Pages
Search Center URL (SITE) KEY: SRCH_ENH_FTR_URL_SITE
  • TYPE: string:RelPath
  • VALUE EXAMPLE: /sites/xyz/SearchCenter/Pages
Search Center URL (Web) KEY: SRCH_ENH_FTR_URL_WEB
  • TYPE: string:RelPath
  • VALUE EXAMPLE: /sites/xyz/SearchCenter/Pages
KEY: SRCH_SB_SET_SITE
  • TYPE: JSON
  • VALUE EXAMPLE: {“Inherit”:false, “ResultsPageAddress”:”/sites/xyz/SearchCenter/Pages/Results2.aspx”, “ShowNavigation”:false}
KEY: SRCH_SB_SET_WEB
  • TYPE: JSON
  • VALUE EXAMPLE: {“Inherit”:false,”ResultsPageAddress”:”/sites/xyz/SearchCenter/Pages/Results2.aspx”,”ShowNavigation”:false}
Search Scope Drop Down Options Mode KEY: SRCH_SITE_DROPDOWN_MODE
  • TYPE: string
  • VALUE EXAMPLE 1: HideScopeDD_DefaultContextual
  • VALUE EXAMPLE 2: HideScopeDD
  • VALUE EXAMPLE 3: ShowDD
  • VALUE EXAMPLE 4: ShowDD_DefaultURL
  • VALUE EXAMPLE 5: ShowDD_DefaultContextual
  • VALUE EXAMPLE 6: ShowDD_NoContextual
  • VALUE EXAMPLE 7: ShowDD_NoContextual_DefaultURL
Target Search Results Page KEY: SRCH_TRAGET_RESULTS_PAGE
  • TYPE: string:RelPath
  • VALUE EXAMPLE: /sites/Search/Pages/results.aspx
KEY: taxonomyhiddenlist
  • TYPE: guid
KEY: vti_approvallevels
  • TYPE: string
  • VALUE EXAMPLE: Approved Rejected Pending\ Review
KEY: vti_associategroups
  • TYPE: int[]
  • VALUE EXAMPLE: 3;28;31;32;33;35;36;37;38;39;40;41;42;43;44;45;46;47;48;49;50;51;52;53;55;56;57;58;59;60;61;62;63;64;65;66;67;68;6;7;8;10;11;12;13;14;15;69;79
KEY: vti_associatemembergroup
  • TYPE: int
  • VALUE EXAMPLE: 8
KEY: vti_associateownergroup
  • TYPE: int
  • VALUE EXAMPLE: 6
KEY: vti_associatevisitorgroup
  • TYPE: int
  • VALUE EXAMPLE: 7
KEY: vti_categories
  • TYPE: string
  • VALUE EXAMPLE: Travel Expense\ Report Business Competition Goals/Objectives Ideas Miscellaneous Waiting VIP In\ Process Planning Schedule
KEY: vti_createdassociategroups
  • TYPE: int[]
  • VALUE EXAMPLE: 6;7;8
KEY: vti_customuploadpage
  • TYPE: string:SiteRelPath
  • VALUE EXAMPLE: /_layouts/15/UploadEx.aspx
KEY: vti_defaultcharset
  • TYPE: string
  • VALUE EXAMPLE: utf-8
KEY: vti_defaultlanguage
  • TYPE: string:local
  • VALUE EXAMPLE: en-us
KEY: vti_extenderversion
  • TYPE: string:Version
  • VALUE EXAMPLE: 15.0.0.4433
KEY: vti_filedialogpostprocessorid
  • TYPE: {guid}
KEY: vti_filenotfoundpage
  • TYPE: string:SiteRelPath
  • VALUE EXAMPLE: /Pages/PageNotFoundError.aspx
KEY: vti_ignorekeyboard
  • TYPE: int
  • VALUE EXAMPLE: 0
KEY: vti_indexedpropertykeys
  • TYPE: string:Token
  • VALUE EXAMPLE: QwBvAG0AbQB1AG4AaQB0AHkAXwBNAGUAbQBiAGUAcgBzAEMAbwB1AG4AdAA=|QwBvAG0AbQB1AG4AaQB0AHkAXwBUAG8AcABpAGMAcwBDAG8AdQBuAHQA|QwBvAG0AbQB1AG4AaQB0AHkAXwBSAGUAcABsAGkAZQBzAEMAbwB1AG4AdAA=|
KEY: vti_mastercssfilecache
  • TYPE: string:filename
  • VALUE EXAMPLE: corev15app.css
KEY: vti_navbuttonhomelabel
  • TYPE: string
  • VALUE EXAMPLE: Home
KEY: vti_navbuttonnextlabel
  • TYPE: string
  • VALUE EXAMPLE: Next
KEY: vti_navbuttonprevlabel
  • TYPE: string
  • VALUE EXAMPLE: Back
KEY: vti_navbuttonuplabel
  • TYPE: string
  • VALUE EXAMPLE: Up
KEY: vti_siteusagetotalbandwidth
  • TYPE: int
  • VALUE EXAMPLE: 0
KEY: vti_siteusagetotalvisits
  • TYPE: int
  • VALUE EXAMPLE: 0
KEY: vti_usernames
Assign Document IDs KEY: docid_enabled
  • TYPE: string
  • VALUE EXAMPLE: 1
Begin IDs with the following characters (Site Prefix) KEY: docid_msft_hier_siteprefix
  • TYPE: string
  • VALUE EXAMPLE: HR

SharePoint 2013 CSOM 对象模型属性包的更多相关文章

  1. SharePoint 2013 CSOM creat post in NewsFeed Access Denied

    现象 在用CSOM创建新闻源时候,报错:无访问权限 解决办法 value="true" 改为 value="false" <appSettings> ...

  2. 每日学习心得:SharePoint 2013 自定义列表项添加Callout菜单项、文档关注、SharePoint服务端对象模型查询

    前言: 前一段时间一直都比较忙,没有什么时间进行总结,刚好节前项目上线,同时趁着放假可以好好的对之前遇到的一些问题进行总结.主要内容有使用SharePoint服务端对象模型进行查询.为SharePoi ...

  3. SharePoint 2013 开发——CSOM概要

    博客地址:http://blog.csdn.net/FoxDave 本篇对客户端API做一个大致地了解. 看一下各个类别主要API之间的对应关系表. 假设我们对Server API已经有了足够地了 ...

  4. 每天的学习经验:SharePoint 2013 定义自己添加的产品清单。Callout菜单项、文档关注、SharePoint服务机端对象模型查询

    前言: 前一段时间一直都比較忙.没有什么时间进行总结,刚好节前项目上线.同一时候趁着放假能够好好的对之前遇到的一些问题进行总结. 主要内容有使用SharePoint服务端对象模型进行查询.为Share ...

  5. SharePoint 2013 使用JavaScript对象模型配置智能提示

    前言 默认在VS2012/2013中编写SharePoint JavaScript 客户端对象模型,都没有智能感知的功能,用起来非常麻烦:其实,我们可以手动配置一下,让JavaScript可以进行智能 ...

  6. SharePoint 2013 字段属性之JSLink 转载来源(http://www.cnblogs.com/jianyus/p/3544482.html)

    在SharePoint 2013中,SPField新增加了一个属性是JSLink,使用客户端脚本修改字段前台展示,我们可以用很多方法修改这个脚本的引用,然后来修改脚本,下面,我们举一个简单的例子. 具 ...

  7. SharePoint 2013 字段属性之JSLink

    在SharePoint 2013中,SPField新增加了一个属性是JSLink,使用客户端脚本修改字段前台展示,我们可以用很多方法修改这个脚本的引用,然后来修改脚本,下面,我们举一个简单的例子. 具 ...

  8. SharePoint 2013 实战碎嘴(ECMAScript客户端对象模型): 提示某个列表不存在

    简单情景描述1:(在Sharepoint 2013 Solution 中) 在相应的.aspx页面引入 一下两个.js文件: <script type="text/javascript ...

  9. 《SharePoint 2013 应用开发实战》目录

    博客地址:http://blog.csdn.net/FoxDave 第 1 章  1 ◄SharePoint概述►        1 1.1  SharePoint的发展历程 1 1.1.1  Sha ...

随机推荐

  1. maven中运行hibernate5的一些注意事项

    问题1:Could not bind factory to JNDI hibernate.cfg.xml中<sessionFactory> 标签中的name="foo" ...

  2. jq点击小图 弹出大图(更新版)

    $(function(){ $(".fj1-consult").on("click",function(){ //设置弹框中图片的路径 $(".lay ...

  3. No package mysql-server available.

    Centos 7 comes with MariaDB instead of MySQL. MariaDb is a open source equivalent to MySQL and can b ...

  4. chrome 跨域设置

    右击chrome快捷方式,在启动指令后面添加--disable-web-security,然后保存.如下: "C:\Program Files (x86)\Google\Chrome\App ...

  5. Spring MVC 4.1.4 RESTFUL风格返回JSON数据406错误处理

    Spring MVC 4.1.4 RESTFUL风格返回JSON数据406错误处理 今天在使用spring4.1.4,使用ResponseBody注解返回JSON格式的数据的时候遇到406错误. 解决 ...

  6. (转)px、em、rem的区别和使用

    国内的设计师大都喜欢用px,而国外的网站大都喜欢用em和rem(国外的大部分网站能够调整的原因在于其使用了em或rem作为字体单位),那么三者有什么区别,又各自有什么优劣呢? 一.px特点 1. IE ...

  7. 查看Linux是32位还是64位

    最直接简洁的办法: 在linux终端输入getconf LONG_BIT命令 如果是32位机器,则结果为32 [root@localhost ~]# getconf LONG_BIT 32 如果是64 ...

  8. jquery mobile在页面加载时添加加载中效果 document.ready 和window.onload执行顺序比较

    想要添加这个效果,先来弄明白页面的加载和事件执行顺序,看这个简单例子: <html xmlns="http://www.w3.org/1999/xhtml"> < ...

  9. CentOS下 MySQL5.7 详细的部署安装流程

    MySQL5.7.14安装过程: 下载5.7版本:wget http://dev.mysql.com/get/Downloads/MySQL-5.7/mysql-5.7.14-linux-glibc2 ...

  10. ROS的单线程Spinning和多线程Spinning

    单线程Spinning ros::spin()是最简单的单线程自旋, 它会一直调用直到结束 用法:  ros::spin(); 另一个单线程spinning是ros::spinOnce(),它定期调用 ...