Table of Contents

Class XPCustomMemberInfo

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

Serves as a base for classes that represent custom member’s metadata.

public class XPCustomMemberInfo : XPMemberInfo
Inheritance
XPCustomMemberInfo
Derived
Inherited Members

Constructors

XPCustomMemberInfo(XPClassInfo, string, Type, XPClassInfo, bool, bool)

Initializes a new instance of the XPCustomMemberInfo class.

public XPCustomMemberInfo(XPClassInfo owner, string propertyName, Type propertyType, XPClassInfo referenceType, bool nonPersistent, bool nonPublic)

Parameters

owner XPClassInfo

An XPClassInfo descendant which owns this XPCustomMemberInfo object. This value is assigned to the XPMemberInfo.Owner property.

propertyName string

A string value that specifies the member’s name. This value is assigned to the XPCustomMemberInfo.Name property.

propertyType Type

The member’s Type. This value is assigned to the XPCustomMemberInfo.MemberType property.

referenceType XPClassInfo

An XPClassInfo object which provides the metadata of the referenced object. This value is assigned to the XPMemberInfo.ReferenceType property.

nonPersistent bool

true, if the member is non-persistent; otherwise, false. The inverted value of this parameter is assigned to the XPTypeInfo.IsPersistent property.

nonPublic bool

true, if the member is declared as public; otherwise, false. This value is assigned to the XPCustomMemberInfo.IsPublic property.

Properties

CanPersist

protected override bool CanPersist { get; }

Property Value

bool

IsPublic

Gets whether the member is public.

public override bool IsPublic { get; }

Property Value

bool

true if the member is public; otherwise, false.

MemberType

Gets the member’s type.

public override Type MemberType { get; }

Property Value

Type

A Type descendant which represents the member’s type.

Name

Gets the member’s name.

public override string Name { get; }

Property Value

string

A string value which specifies the member’s name.

ReferenceType

Gets the XPClassInfo of the referenced object if the member is a reference to another persistent object.

public override XPClassInfo ReferenceType { get; }

Property Value

XPClassInfo

An XPClassInfo object which provides the metadata of the referenced object.

Methods

GetModified(object)

Checks whether or not the member is modified.

public override bool GetModified(object theObject)

Parameters

theObject object

A persistent object that will be checked.

Returns

bool

true, if the member is modified; otherwise, false.

GetOldValue(object)

Returns the old value of the member.

public override object GetOldValue(object theObject)

Parameters

theObject object

A persistent object for which the member value will be obtained.

Returns

object

An object which is the old value of the member.

GetStore(object)

protected virtual IXPCustomPropertyStore GetStore(object theObject)

Parameters

theObject object

Returns

IXPCustomPropertyStore

GetValue(object)

Returns the property’s value.

public override object GetValue(object theObject)

Parameters

theObject object

An object whose property value will be returned.

Returns

object

An object which represents the property’s value.

ResetModified(object)

Resets the member’s modification.

public override void ResetModified(object theObject)

Parameters

theObject object

A persistent object whose member modification will be reset.

SetModified(object, object)

Marks the member as modified.

public override void SetModified(object theObject, object oldValue)

Parameters

theObject object

A persistent object whose member will be marked as modified.

oldValue object

An object that is the member’s old value.

SetValue(object, object)

Sets the property’s value.

public override void SetValue(object theObject, object theValue)

Parameters

theObject object

An object whose property value will be set.

theValue object

An object which represents the new value for this property.