WebPart.ZoneID property
取得或設定用來呈現網頁組件中的網頁組件區域。
Namespace: Microsoft.SharePoint.WebPartPages
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
<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; }
Property value
Type: System.String
string對應到 [網頁組件] 頁面上WebPartZone控制項的ID屬性的值。預設值為String.Empty。
備註
此屬性可以由個別使用者個人化。其WebPartStorageAttribute值為Storage.Personal,這會指定的屬性可以儲存每個使用者為基礎。僅使用正確的個人化網頁組件頁面的使用者可以設定這個屬性。以程式設計方式設定,或者它可以設定透過 [網頁組件] 工作窗格,在個人檢視中的 Web 型使用者介面中,或使用SharePoint Foundation-相容的 HTML 編輯器,例如SharePoint Designer。
嘗試將ZoneID屬性設定為超過 64 個字元產生數值捨去成 64 個字元的值。