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
XPClassInfoAn XPClassInfo descendant which owns this XPCustomMemberInfo object. This value is assigned to the XPMemberInfo.Owner property.
propertyName
stringA string value that specifies the member’s name. This value is assigned to the XPCustomMemberInfo.Name property.
propertyType
TypeThe member’s Type. This value is assigned to the XPCustomMemberInfo.MemberType property.
referenceType
XPClassInfoAn XPClassInfo object which provides the metadata of the referenced object. This value is assigned to the XPMemberInfo.ReferenceType property.
nonPersistent
booltrue, if the member is non-persistent; otherwise, false. The inverted value of this parameter is assigned to the XPTypeInfo.IsPersistent property.
nonPublic
booltrue, 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
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
Name
Gets the member’s name.
public override string Name { get; }
Property Value
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
objectA 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
objectA 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
GetValue(object)
Returns the property’s value.
public override object GetValue(object theObject)
Parameters
theObject
objectAn 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
objectA 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
objectA persistent object whose member will be marked as modified.
oldValue
objectAn object that is the member’s old value.
SetValue(object, object)
Sets the property’s value.
public override void SetValue(object theObject, object theValue)