XmlWebPart.PartStorage property

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

Namespace:  Microsoft.SharePoint.WebPartPages
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

[ResourcesAttribute("PartStorageLiteral", "Advanced", "PartStorage")]
[WebPartStorageAttribute(Storage.Personal)]
public string PartStorage { get; set; }

Property value

Type: System.String
String  Data that applies to this Web Part only.

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.

This is a Personal (per user) property.

Show: