WebPart.AllowZoneChange property
取得或設定是否將網頁組件可由控制是否可以變更ZoneID屬性移動到不同的區域。
Namespace: Microsoft.SharePoint.WebPartPages
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
<WebPartStorageAttribute(Storage.Shared)> _
Public Overrides Property AllowZoneChange As Boolean
Get
Set
'用途
Dim instance As WebPart
Dim value As Boolean
value = instance.AllowZoneChange
instance.AllowZoneChange = value
[WebPartStorageAttribute(Storage.Shared)]
public override bool AllowZoneChange { get; set; }
Property value
Type: System.Boolean
true可以變更網頁組件ZoneID屬性 ; 如果否則,請false。預設值為true。
備註
如果 [網頁組件的ZoneID屬性變成無效, AllowZoneChange屬性會自動設定為true。例如,這就會發生的網頁組件區域中,原來包含網頁組件中刪除時,或變更區域的ID屬性。
這個屬性無法依個別使用者個人化。WebPartStorageAttribute其值為Storage.Shared,這會指定屬性將會儲存具有相同值的所有使用者。僅限具有寫入網頁] 權限的使用者可以設定這個屬性。以程式設計方式設定,或者它可以設定透過 [網頁組件] 工作窗格,在 [共用] 檢視的 Web 型使用者介面中,或使用SharePoint Foundation-相容的 HTML 編輯器,例如SharePoint Designer。