Click to Rate and Give Feedback
Community Content
In this section
Statistics Annotations (0)
Collapse All/Expand All Collapse All
This page is specific to
The 2007 product release

Other versions are also available for the following:
WebPartStorageAttribute Class (Microsoft.SharePoint.WebPartPages)
Specifies how a property should be stored.

Namespace: Microsoft.SharePoint.WebPartPages
Assembly: Microsoft.SharePoint (in microsoft.sharepoint.dll)
Visual Basic (Declaration)
<AttributeUsageAttribute(AttributeTargets.Property, AllowMultiple:=False)> _
<AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level:=AspNetHostingPermissionLevel.Minimal)> _
Public NotInheritable Class WebPartStorageAttribute
    Inherits Attribute
Visual Basic (Usage)
Dim instance As WebPartStorageAttribute
C#
[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.

System.Object
   System.Attribute
    Microsoft.SharePoint.WebPartPages.WebPartStorageAttribute
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Errata: default value of Storage      Wictor Wilén   |   Edit   |   Show History
The article says that the default value o the Storage property is Storage.PerUser, this is almost true, the correct is Storage.Personal.
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement | Site Feedback
Page view tracker