PersistedAttribute class
會指出屬性化的屬性應該儲存在設定資料庫。
Inheritance hierarchy
System.Object
System.Attribute
Microsoft.SharePoint.Administration.PersistedAttribute
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
<AttributeUsageAttribute(AttributeTargets.Field)> _
<SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel := True)> _
Public NotInheritable Class PersistedAttribute _
Inherits Attribute
'用途
Dim instance As PersistedAttribute
[AttributeUsageAttribute(AttributeTargets.Field)]
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
public sealed class PersistedAttribute : Attribute
備註
此屬性只能用於衍生自SPAutoSerializingObject欄位上。
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.
請參閱
參照
Microsoft.SharePoint.Administration namespace
其他資源
Overview: Using the Object Model to Customize Administration