WebPart.ZoneID 属性
获取或设置要在其中呈现 Web 部件的 Web 部件区域。
命名空间: Microsoft.SharePoint.WebPartPages
程序集: Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)
语法
声明
<WebPartStorageAttribute(Storage := Storage.Personal)> _
Public Property ZoneID As String
Get
Set
用法
Dim instance As WebPart
Dim value As String
value = instance.ZoneID
instance.ZoneID = value
[WebPartStorageAttribute(Storage = Storage.Personal)]
public string ZoneID { get; set; }
属性值
类型:System.String
Web 部件页上的WebPartZone控件的ID属性的值对应string 。默认值是String.Empty。
备注
此属性可由单个用户进行个性化设置。其WebPartStorageAttribute值为Storage.Personal,它指定的属性可以存储基于每个用户。只有具有适当的个性化 Web 部件页面的用户可以设置该属性。以编程方式,可以将或通过基于 Web 的用户界面,或使用SharePoint Foundation的个人视图中的 Web 部件任务窗格可以将设置-兼容的 HTML 编辑器如SharePoint Designer。
试图将ZoneID属性设置为超过 64 个字符结果被截尾取 64 个字符的值的值。