DerivedEntityClassAttribute Class

Identifies a class that derives from the class to which the attribute is applied.

Inheritance Hierarchy

System.Object
  System.Attribute
    Microsoft.SharePoint.Linq.DerivedEntityClassAttribute

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

Syntax

'Declaration
<AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple := True)> _
Public NotInheritable Class DerivedEntityClassAttribute _
    Inherits Attribute
'Usage
Dim instance As DerivedEntityClassAttribute
[AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple = true)]
public sealed class DerivedEntityClassAttribute : Attribute

Remarks

Typically, there will be one of these attributes for each derived class. Primarily, this attribute decorates classes representing content types.

Examples

The following is an example of DerivedEntityClassAttributein use:

[ContentType(Name="Item", Id="0x01")]
[DerivedEntityClass(Type=typeof(RemoteUsers))]
[DerivedEntityClass(Type=typeof(Folder))]
[DerivedEntityClass(Type=typeof(ManagersItem))]
[DerivedEntityClass(Type=typeof(TeamMembersItem))]
[DataContract()]
public partial class Item {

    // Member declarations omitted.
}

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

DerivedEntityClassAttribute Members

Microsoft.SharePoint.Linq Namespace