Share via


WebPartStorageAttribute Class

The WebPartStorageAttribute class is derived from Object.Attribute and is used for specifying how a property should be stored.

System.Object

   System.Attribute

      Microsoft.SharePoint.WebPartPages.WebPartStorageAttribute

Public Constructors

The following table shows the constructors of the WebPartStorageAttribute class and a brief description of each.

Name Description
WebPartStorageAttribute Initializes a new instance of the WebPartStorageAttribute class.
WebPartStorageAttribute(Microsoft.SharePoint.WebPartPages.Storage) Constructor Initializes a new instance of the WebPartStorageAttribute class.

Public Properties

The following table shows the properties of the WebPartStorageAttribute class, the data type of each property, and a brief description of each.

Name Data type Description
ControlledExport Boolean Specifies whether the property can be exported.
Storage Microsoft.SharePoint.WebPartPages.Storage An enumeration specifying how the property will be stored.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Any instance members are not guaranteed to be thread safe.

Remarks

If a WebPartStorage attribute is not specified for a property, Storage.PerUser is used by default. If a WebPartStorage attribute is specified for a property but the ControlledExport option is not set, ControlledExport=False is used by default.

Requirements

Namespace: Microsoft.SharePoint.WebPartPages

Platforms: Microsoft Windows Server 2003

Assembly: Windows SharePoint Services (in Microsoft.SharePoint.dll)

Security: Code Access Security