Skip to main content

XPClassInfo.FindMember(String) Method

Returns information on the member with the specified name.

Namespace: DevExpress.Xpo.Metadata

Assembly: DevExpress.Xpo.v24.1.dll

NuGet Package: DevExpress.Xpo

Declaration

public XPMemberInfo FindMember(
    string memberName
)

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. null (Nothing in Visual Basic) if a member with the specified name isn’t found.

Remarks

The FindMember 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 FindMember method scans the XPClassInfo.OwnMembers collection of the base class (XPClassInfo.BaseClass).

The following code snippets (auto-collected from DevExpress Examples) contain references to the FindMember(String) method.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also