Skip to main content
A newer version of this page is available. .

FriendlyKeyPropertyAttribute.FindFriendlyKeyMemberName(ITypeInfo, Boolean) Method

Returns the name of the persistent property which the system uses as an identifier-like property for a specific type.

Namespace: DevExpress.Persistent.Base

Assembly: DevExpress.ExpressApp.v18.2.dll

Declaration

public static string FindFriendlyKeyMemberName(
    ITypeInfo typeInfo,
    bool recursive
)

Parameters

Name Type Description
typeInfo ITypeInfo

An ITypeInfo object which supplies metadata on the required type.

recursive Boolean

true, to take into account inherited FriendlyKeyPropertyAttribute attributes; otherwise, false.

Returns

Type Description
String

A string holding the name of the persistent property which the system uses as an identifier-like property for a specific type.

Remarks

If the FriendlyKeyPropertyAttribute is not applied to a class or its ancestors, the FindFriendlyKeyMemberName method returns null (Nothing in VB).

See Also