博客地址: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. 关于HTML5你必须知道的28个新特性,新技巧以及新技术

    1. 新的Doctype 尽管使用<!DOCTYPE html>,即使浏览器不懂这句话也会按照标准模式去渲染 2. Figure元素 用<figure>和<figcapt ...

  2. centos 7 编译zabbix 3.2.2

    已有LNMP环境. 1.安装zabbix需要的依赖包,红色部门的包官方yum源没有,需要自己下载 yum install net-snmp fping iksemel net-snmp-devel   ...

  3. no route to host

    防火墙没有关闭: systemctl stop firewalld

  4. 附加类型的实体失败,因为相同类型的其他实体已具有相同的主键值。在使用 "Attach" 方法或者将实体的状态设置为 "Unchanged" 或 "Modified" 时如果图形中的任何实体具有冲突键值

    var list= DAL.LoadEntities(x => x.OrderCode == orderCode).AsNoTracking().ToList().FirstOrDefault( ...

  5. ATC空管系统的实时控制软件系统分析

    什么是ATC空管系统? 空中交通管制的目的是对航空器的空中活动进行有效的管理,维护空中交通秩序,保障空中交通畅通,保证飞行安全和提高飞行效率,防止航空器相撞,防止机场及其附近空域的航空器同障碍物相撞. ...

  6. message from server: "Host 'XXX' is not allowed to connect to this MySQL server

    Access denied for user 'root'@'XXXXX' (using password: YES) mysql命令不正确造成: grant all privileges on *. ...

  7. C#基础

    .net/dotnet:一般指.NetFramework框架,一种平台,一种技术. c#(sharp):一种编程语言,可以开发基于.net平台的应用. Java:是一种技术,又是一门语言: .net应 ...

  8. 20145236 GDB调试汇编堆栈过程分析

    GDB调试汇编堆栈过程分析 首先需要输入sudo apt-get install libc6-dev-i386安装一个库才能产生汇编代码,然后输入gcc - g example.c -o exampl ...

  9. Java—事件和多线程机制

    一  事件 1.1 事件源 图形用户界面上每个可能产生事件的组件称为事件源. 1.2 事件监听者 Java系统中注册的用于接收特殊事件的类.不同的事件对应着不同的监听者,要想事件被监听者监听并处理,则 ...

  10. html快速入门(基础教程+资源推荐)

    1.html究竟是什么? 从字面上理解,html是超文本标记语言hyper text mark-up language的首字母缩写,指的是一种通用web页面描述语言,是用来描述我们打开浏览器就能看到的 ...