Condividi tramite


DataAttribute Class

Provides two optional properties commonly used by attributes on properties (of entity classes) that are mapped to list fields (columns) or list properties.

Inheritance Hierarchy

System.Object
  System.Attribute
    Microsoft.SharePoint.Linq.DataAttribute
      Microsoft.SharePoint.Linq.AssociationAttribute
      Microsoft.SharePoint.Linq.ChoiceAttribute
      Microsoft.SharePoint.Linq.ColumnAttribute

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

Syntax

'Declaration
<AttributeUsageAttribute(AttributeTargets.Property Or AttributeTargets.Field, AllowMultiple := False)> _
Public MustInherit Class DataAttribute _
    Inherits Attribute
'Usage
Dim instance As DataAttribute
[AttributeUsageAttribute(AttributeTargets.Property|AttributeTargets.Field, AllowMultiple = false)]
public abstract class DataAttribute : Attribute

Remarks

Use this as the parent class for custom classes that create attributes on properties that are mapped to list columns or list properties.

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

DataAttribute Members

Microsoft.SharePoint.Linq Namespace