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
-
objectAttributeRegisterObjectTypeAttribute
- Implements
- Extension Methods
Constructors
RegisterObjectTypeAttribute(Type, string)
Constructor
public RegisterObjectTypeAttribute(Type infoType, string objectType)
Parameters
infoTypeTypeInfo type
objectTypestringObject 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
Methods
PreInit()
Initializes the attribute
public void PreInit()