Table of Contents

Class ReflectionClassInfo

Namespace
DevExpress.Xpo.Metadata
Assembly
DevExpress.Xpo.v24.1.dll

Provides access to the metadata information of a class gathered via Reflection.

public class ReflectionClassInfo : XPClassInfo, IXPClassInfoProvider, IXPDictionaryProvider
Inheritance
ReflectionClassInfo
Implements
Inherited Members

Constructors

ReflectionClassInfo(Type, XPDictionary)

Initializes a new instance of the ReflectionClassInfo object with the specified ReflectionClassInfo.ClassType and XPClassInfo.Dictionary property.

public ReflectionClassInfo(Type classType, XPDictionary dictionary)

Parameters

classType Type

A Type of the described class. This value is assigned to the ReflectionClassInfo.ClassType property.

dictionary XPDictionary

An XPDictionary object which contains the new ReflectionClassInfo object. This value is assigned to the XPClassInfo.Dictionary property.

Properties

AssemblyName

Gets the name of the assembly that the class is declared in.

public override string AssemblyName { get; }

Property Value

string

A string value which specifies the name of the assembly that the class is declared in.

BaseClass

Gets the metadata information of the base class.

public override XPClassInfo BaseClass { get; }

Property Value

XPClassInfo

An XPClassInfo object which provides the metadata information of the base class. null (Nothing in Visual Basic) if the XPClassInfo object provides a description of the class which is the root in a class hierarchy.

CanPersist

protected override bool CanPersist { get; }

Property Value

bool

ClassType

Gets the type of the class whose metadata is provided by this ReflectionClassInfo object.

public override Type ClassType { get; }

Property Value

Type

The Type of the class.

DefaultMembersPersistence

Gets the rule that determines which members are persistent by default.

public DefaultMembersPersistence DefaultMembersPersistence { get; }

Property Value

DefaultMembersPersistence

A DefaultMembersPersistence enumeration value that specifies which members are by default implied to be persistent.

FullName

Gets the full name of a class.

public override string FullName { get; }

Property Value

string

A string value which specifies the full name of the class.

IsInterface

protected override bool IsInterface { get; }

Property Value

bool

OwnMembers

Gets a collection of XPMemberInfo objects that provide metadata information on all the members owned by the class.

public override ICollection<XPMemberInfo> OwnMembers { get; }

Property Value

ICollection<XPMemberInfo>

An array of XPMemberInfo objects.

SuppressSuspiciousMemberInheritanceCheck

Specifies whether exceptions are thrown when overridden properties have attributes from the DevExpress.Xpo namespace applied.

[Obsolete("SuppressSuspiciousMemberInheritanceCheck accessed")]
public static bool SuppressSuspiciousMemberInheritanceCheck { get; set; }

Property Value

bool

true, if exceptions are suppressed; false, if exceptions are thrown. The default is false.

Methods

AddMember(XPMemberInfo)

Adds the specified member’s metadata information to the ReflectionClassInfo.OwnMembers collection.

public override void AddMember(XPMemberInfo newMember)

Parameters

newMember XPMemberInfo

An XPMemberInfo object to add.

ClearModifications(object)

Clears modifications made with the specified persistent object.

public override void ClearModifications(object theObject)

Parameters

theObject object

A persistent object whose modifications will be cleared.

CreateObjectInstance(Session, XPClassInfo)

protected override object CreateObjectInstance(Session session, XPClassInfo instantiationClassInfo)

Parameters

session Session
instantiationClassInfo XPClassInfo

Returns

object

DropCache()

protected override void DropCache()

GetDefaultTableName()

protected override string GetDefaultTableName()

Returns

string

HasModifications(object)

Checks if there are modifications in the specified persistent object.

public override bool HasModifications(object theObject)

Parameters

theObject object

A persistent object to be checked.

Returns

bool

true, if there are modifications; otherwise - false;

QueryOwnMember(string)

protected override XPMemberInfo QueryOwnMember(string memberName)

Parameters

memberName string

Returns

XPMemberInfo