Skip to main content
.NET 8.0+

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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.v24.2.dll

NuGet Package: DevExpress.ExpressApp

#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