适用于: SharePoint 2016 |SharePoint Foundation 2013 |SharePoint Online |SharePoint Server 2013
包含指定列表安全性配置方式的读取、架构和写入安全设置。
<Security>
  <ReadSecurity> 1 | 2 </ReadSecurity>
  <SchemaSecurity> 1 | 2 </SchemaSecurity>
  <WriteSecurity> 1 | 2 | 4 </WriteSecurity>
</Security>
元素和属性
下面各部分介绍了属性、子元素和父元素。
Attributes
无
子元素
父元素
出现次数
- 最小值:0
- 最大值:1
备注
下表汇总了 Security 元素的子元素可能包含的值。
| 值 | ReadSecurity | SchemaSecurity | WriteSecurity | 
|---|---|---|---|
| 1 | 读取所有项目。 | 任何人都可以修改该架构(添加和删除列,等等)。 | 写入所有项目。 | 
| 2 | 只能读取我的项目。 | 只有列表所有者可以修改架构。 | 只能写入我的项目。 | 
| 4 | 不适用 | 不适用 | 不能写入任何项目(只读列表)。 | 
示例
下面的示例概述了如何使用 Security 元素。
<List Name="Announcements"...>
    ...
  <Security>
    <ReadSecurity>1</ReadSecurity>
    <WriteSecurity>1</WriteSecurity>
    <SchemaSecurity>1</SchemaSecurity>
  </Security>
    ...
</List>