博客地址: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
|
|
KEY: allowmasterpageediting
|
|
KEY: allowrevertfromtemplate
|
|
KEY: allowslistpolicy
|
|
KEY: Community_MembersCount
|
|
KEY: Community_RepliesCount
|
|
KEY: Community_TopicsCount
|
|
KEY: disabledhelpcollections
|
|
KEY: dlc_sitehasexpirationpolicy
|
|
KEY: dlc_sitehaspolicy
|
|
KEY: dlc_webhasexpirationpolicy
|
|
KEY: enabledhelpcollections
|
|
KEY: FollowLinkEnabled
|
|
KEY: helplibraryurl
|
|
KEY: htmldesignviewnamealldevicechannelssimplelisting
|
|
KEY: htmldesignviewnamedesigntemplates
|
|
KEY: htmldesignviewnamehtmldesignfiles
|
|
KEY: htmldesignviewnamehtmldesignsandrelatedfiles
|
|
KEY: htmldesignviewnamehtmlmasterpages
|
|
KEY: htmldesignviewnamehtmlpagelayouts
|
|
KEY: Microsoft.SharePoint.WorkflowServices.SPWebApplicationIdentifier | |
KEY: Microsoft.SharePoint.WorkflowServices.SPWebScopeProperties
|
|
KEY: Microsoft.SharePoint.WorkflowServices.SPWebScopeUri
|
|
KEY: OData___AllowExternalEmbedding
|
|
KEY: OData___CacheProfileListId
|
|
KEY: OData___CurrentDynamicChildLimit
|
|
KEY: OData___CurrentNavigationExcludes
|
|
KEY: OData___CurrentNavigationIncludeTypes
|
|
KEY: OData___DefaultPageLayout
|
|
KEY: OData___DisplayShowHideRibbonActionId
|
|
KEY: OData___DocumentsListId
|
|
KEY: OData___GlobalDynamicChildLimit
|
|
KEY: OData___GlobalNavigationExcludes
|
|
KEY: OData___GlobalNavigationIncludeTypes
|
|
KEY: OData___ImagesListId
|
|
KEY: OData___NavigationOrderingMethod
|
|
KEY: OData___NoMobileMappingf300e892f08347d4b47b1a32e65f7ba6
|
|
KEY: OData___PagesListId
|
|
KEY: OData___PublishingFeatureActivated
|
|
KEY: OData___PublishingFeatureMdsDisabled
|
|
KEY: OData___ScriptSafeInternalPages
|
|
KEY: OData___SiteColDocumentsListId
|
|
KEY: OData___SiteColImagesListId
|
|
KEY: OData__auditlogreportstoragelocation
|
|
KEY: OData__auditlogtrimmingcallout
|
|
KEY: OData__auditlogtrimmingretention
|
|
KEY: OData__holds_list_cache_
|
|
KEY: OData__PublishedLinksListId
|
|
KEY: OData__ReusableContentListId
|
|
KEY: OData__SmtReportsListId
|
|
KEY: OData__VarLabelsListId
|
|
KEY: OData__VarRelationshipsListId
|
|
KEY: OData__VTI_ACCESSREQUESTSLISTID
|
|
KEY: OData__VTI_PENDINGREQUESTSVIEWID
|
|
KEY: profileschemaversion TYPE: int VALUE EXAMPLE: 6 | |
KEY: SaveSiteAsTemplateEnabled
|
|
KEY: seocanonicallinkparameterlistpropertyname | |
KEY: seocustommetatagpropertyname | |
KEY: seoenablecanonicallinkparameterspropertyname
|
|
KEY: seoincludecustommetatagpropertyname
|
|
KEY: seositemapgeneratedpropertyname
|
|
KEY: sharepointhelpoverride
|
|
KEY: showurlstructure
|
|
KEY: SiteCollectionGroupIdf5d847c7_x002d_3f02_x002d_4b79_x002d_a0d1_x002d_cc182cef3aa6
|
|
Search Center URL |
KEY: SRCH_ENH_FTR_URL
|
Search Center URL (SITE) |
KEY: SRCH_ENH_FTR_URL_SITE
|
Search Center URL (Web) |
KEY: SRCH_ENH_FTR_URL_WEB
|
KEY: SRCH_SB_SET_SITE
|
|
KEY: SRCH_SB_SET_WEB
|
|
Search Scope Drop Down Options Mode |
KEY: SRCH_SITE_DROPDOWN_MODE
|
Target Search Results Page |
KEY: SRCH_TRAGET_RESULTS_PAGE
|
KEY: taxonomyhiddenlist
|
|
KEY: vti_approvallevels
|
|
KEY: vti_associategroups
|
|
KEY: vti_associatemembergroup
|
|
KEY: vti_associateownergroup
|
|
KEY: vti_associatevisitorgroup
|
|
KEY: vti_categories
|
|
KEY: vti_createdassociategroups
|
|
KEY: vti_customuploadpage
|
|
KEY: vti_defaultcharset
|
|
KEY: vti_defaultlanguage
|
|
KEY: vti_extenderversion
|
|
KEY: vti_filedialogpostprocessorid
|
|
KEY: vti_filenotfoundpage
|
|
KEY: vti_ignorekeyboard
|
|
KEY: vti_indexedpropertykeys
|
|
KEY: vti_mastercssfilecache
|
|
KEY: vti_navbuttonhomelabel
|
|
KEY: vti_navbuttonnextlabel
|
|
KEY: vti_navbuttonprevlabel
|
|
KEY: vti_navbuttonuplabel
|
|
KEY: vti_siteusagetotalbandwidth
|
|
KEY: vti_siteusagetotalvisits
|
|
KEY: vti_usernames | |
Assign Document IDs |
KEY: docid_enabled
|
Begin IDs with the following characters (Site Prefix) |
KEY: docid_msft_hier_siteprefix
|