Table of Contents

Class RegisterObjectTypeAttribute

Namespace
CMS
Assembly
CMS.DataEngine.dll

This attribute finds the static TypeInfo fields (all of them) and registers object types those TypeInfos define to the system.

[AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true)]
[ProcessingPriority(1)]
public class RegisterObjectTypeAttribute : Attribute, IPreInitAttribute
Inheritance
object
Attribute
RegisterObjectTypeAttribute
Implements
Extension Methods

Constructors

RegisterObjectTypeAttribute(Type, string)

Constructor

public RegisterObjectTypeAttribute(Type infoType, string objectType)

Parameters

infoType Type

Info type

objectType string

Object type

Properties

MarkedType

Type marked with this attribute

public Type MarkedType { get; set; }

Property Value

Type

ObjectType

Object type

public string ObjectType { get; set; }

Property Value

string

TypeInfo

Type info representing this type

public ObjectTypeInfo TypeInfo { get; set; }

Property Value

ObjectTypeInfo

Methods

PreInit()

Initializes the attribute

public void PreInit()