Export (0) Print
Expand All

DerivedEntityClassAttribute class

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

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

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

[AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple = true)]
public sealed class DerivedEntityClassAttribute : Attribute

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

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.
}

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show:
© 2015 Microsoft