XPClassInfo.GetMember(String) Method

Returns information on the member with the specified name.

Namespace: DevExpress.Xpo.Metadata

Assembly: DevExpress.Xpo.v19.2.dll

Declaration

public XPMemberInfo GetMember(
    string memberName
)
Public Function GetMember(
    memberName As String
) As XPMemberInfo
public XPMemberInfo GetMember(
    string memberName
)
Public Function GetMember(
    memberName As String
) As XPMemberInfo

Parameters

Name Type Description
memberName String

A String value which specifies the member's name.

Parameters

Name Type Description
memberName String

A String value which specifies the member's name.

Returns

Type Description
XPMemberInfo

An XPMemberInfo object which represents member metadata. If a member with the specified name isn't found, an exception is thrown.

Returns

Type Description
XPMemberInfo

An XPMemberInfo object which represents member metadata. If a member with the specified name isn't found, an exception is thrown.

Remarks

The GetMember method scans the XPClassInfo.OwnMembers collection for an element whose XPMemberInfo.Name property's value matches the memberName parameter. If an element with the specified name isn't found, the GetMember method scans the XPClassInfo.OwnMembers collection of the base class (XPClassInfo.BaseClass).

See Also