Table of Contents

Class MapContentTypeReferenceToAttribute

Namespace
CMS.ContentEngine
Assembly
CMS.ContentEngine.dll

Attribute used in generated code to add class, to which the property should be mapped.

[AttributeUsage(AttributeTargets.Property, AllowMultiple = true)]
public sealed class MapContentTypeReferenceToAttribute : Attribute
Inheritance
object
Attribute
MapContentTypeReferenceToAttribute
Extension Methods

Remarks

Model type in the following order when mapping: 1. Model type specified by MapContentTypeReferenceToAttribute. 2. Default model type specified by MapReferenceToAttribute. 3. Model type from default mapping functionality.

Constructors

MapContentTypeReferenceToAttribute(string, Type)

Initializes a new instance of the MapContentTypeReferenceToAttribute class.

public MapContentTypeReferenceToAttribute(string contentTypeName, Type contentTypeModel)

Parameters

contentTypeName string

The name of the content type associated with the class.

contentTypeModel Type

The model of the content type associated with the class.

Properties

ContentTypeModel

Model of the content type associated with the class.

public Type ContentTypeModel { get; }

Property Value

Type

ContentTypeName

Name of the content type associated with the class.

public string ContentTypeName { get; }

Property Value

string

See Also