共用方式為


WebPartStorageAttribute class

指定儲存屬性的方式。

Inheritance hierarchy

System.Object
  System.Attribute
    Microsoft.SharePoint.WebPartPages.WebPartStorageAttribute

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

Syntax

'宣告
<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

備註

如果未指定屬性的WebPartStorageAttribute屬性,預設使用Personal 。如果指定屬性的WebPartStorageAttribute屬性,但沒有設定ControlledExport屬性,假設值是設為false。

如果您正在開發 SharePoint 2003 Web 組件,您可以套用PersonalizableAttribute屬性和WebPartStorageAttribute屬性,以變更序列化方法。然而,對於較新版本的 SharePoint, PersonalizableAttribute屬性是用來將網頁組件使用WebPartStorageAttribute屬性之前,先還原序列化的預設選項。

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.

請參閱

參照

WebPartStorageAttribute members

Microsoft.SharePoint.WebPartPages namespace