다음을 통해 공유


ContentEditorWebPart.PartStorage Property

Gets or sets data that is specific to this Web Part.

Namespace:  Microsoft.SharePoint.WebPartPages
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
<ResourcesAttribute("PartStorageLiteral", "Advanced", "PartStorage")> _
<WebPartStorageAttribute(Storage.Personal)> _
Public Property PartStorage As String
    Get
    Set
'Usage
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 that contains data that applies to this Web Part only.

Remarks

The PartStorage property is read/write. This property can be used by a Web Part to store any kind of Web Part data. For example, you can use it to store private data for individual users. This property is similar to a Tag property in Microsoft Visual Basic, and it can be used to store Web Part customization information. You can store the value for this property in XML format to maximize the amount of information that is stored. There is no maximum length for this property.

PartStorage is a PerUser property (i.e. Storage.Personal).

See Also

Reference

ContentEditorWebPart Class

ContentEditorWebPart Members

Microsoft.SharePoint.WebPartPages Namespace