WebPartStorageAttribute Class

Specifies how a property should be stored.

Inheritance Hierarchy


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


<AttributeUsageAttribute(AttributeTargets.Property, AllowMultiple := False)> _
<AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level := AspNetHostingPermissionLevel.Minimal)> _
Public NotInheritable Class WebPartStorageAttribute _
    Inherits Attribute

Dim instance As WebPartStorageAttribute
[AttributeUsageAttribute(AttributeTargets.Property, AllowMultiple = false)]
[AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
public sealed class WebPartStorageAttribute : Attribute


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.

Thread Safety

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

See Also


WebPartStorageAttribute Members

Microsoft.SharePoint.WebPartPages Namespace