次の方法で共有


PersistedAttribute class

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

Inheritance hierarchy

System.Object
  System.Attribute
    Microsoft.SharePoint.Administration.PersistedAttribute

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

Syntax

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

Remarks

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

Reference

PersistedAttribute members

Microsoft.SharePoint.Administration namespace

Other resources

Overview: Using the Object Model to Customize Administration

Walkthrough: Creating a Content Service Object