PersistedAttribute class

Indicates that the attributed property should be stored in the configuration database.

Inheritance hierarchy


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


<AttributeUsageAttribute(AttributeTargets.Field)> _
<SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel := True)> _
Public NotInheritable Class PersistedAttribute _
    Inherits Attribute
Dim instance As PersistedAttribute
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
public sealed class PersistedAttribute : Attribute


This attribute can only be used on fields of classes derived from 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.

See also


PersistedAttribute members

Microsoft.SharePoint.Administration namespace

Other resources

Overview: Using the Object Model to Customize Administration

Walkthrough: Creating a Content Service Object