XmlWebPart.PartStorage property
取得或設定此 Web 組件特定的資料。
Namespace: Microsoft.SharePoint.WebPartPages
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
<ResourcesAttribute("PartStorageLiteral", "Advanced", "PartStorage")> _
<WebPartStorageAttribute(Storage.Personal)> _
Public Property PartStorage As String
Get
Set
'用途
Dim instance As XmlWebPart
Dim value As String
value = instance.PartStorage
instance.PartStorage = value
[ResourcesAttribute("PartStorageLiteral", "Advanced", "PartStorage")]
[WebPartStorageAttribute(Storage.Personal)]
public string PartStorage { get; set; }
Property value
Type: System.String
String適用於僅此 Web 組件的資料。
備註
PartStorage屬性是讀取/寫入。網頁組件可以使用這個屬性,儲存任何種類的網頁組件資料。例如,您可以使用它儲存為個別使用者的私人資料。這個屬性類似於Tag屬性在 Microsoft Visual Basic 中,而且它可以用來儲存網頁組件自訂資訊。您可以將這個屬性的值儲存在 XML 格式儲存的資訊數量最大化。這個屬性沒有最大長度。
這是個人 (每個使用者) 的屬性。