Table of Contents

Class ContentTypeUseAttribute

Namespace
ToSic.Eav.Data.ContentTypes
Assembly
ToSic.Eav.Data.dll

Mark raw data objects which will be converted to Entities, so that they will inherit the content-type definition of another type.

[WorkInProgressApi("v22")]
[AttributeUsage(AttributeTargets.Class)]
public class ContentTypeUseAttribute : Attribute
Inheritance
object
Attribute
ContentTypeUseAttribute

Remarks

Use this to specify raw data which - when converted to an entity - should be assigned to a specific content-type.

This is especially important when the Content Type Definition is on another interface or class, but your Raw Data Object must reference that.

Properties

Type

public required Type Type { get; init; }

Property Value

Type