共用方式為


ContentEditorWebPart.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 ContentEditorWebPart
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 格式儲存的資訊數量最大化。這個屬性沒有最大長度。

PartStorage是PerUser屬性 (亦即Storage.Personal)。

請參閱

參照

ContentEditorWebPart class

ContentEditorWebPart members

Microsoft.SharePoint.WebPartPages namespace