Skip to main content

XPMemberInfo.IsKey Property

Gets whether the member represents a key member.

Namespace: DevExpress.Xpo.Metadata

Assembly: DevExpress.Xpo.v24.1.dll

NuGet Package: DevExpress.Xpo


public bool IsKey { get; }

Property Value

Type Description

true if the member represents a key member; otherwise, false.


A key member is a member which uniquely identifies each object instance in the persistent object collection. There can only be one key member in the persistent object collection which is marked by the KeyAttribute.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the IsKey property.


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