Skip to main content
.NET 6.0+

ITypeInfo.DefaultMember Property

Returns metadata on the current type’s default member.

Namespace: DevExpress.ExpressApp.DC

Assembly: DevExpress.ExpressApp.v23.2.dll

NuGet Package: DevExpress.ExpressApp

Declaration

IMemberInfo DefaultMember { get; }

Property Value

Type Description
IMemberInfo

The metadata on the current type’s default member.

Remarks

XAF checks if a business class contains the following properties and sets DefaultMember to the first found property:

  1. The property specified by the class’s DefaultPropertyAttribute or XafDefaultPropertyAttribute.
  2. A property whose name matches or contains one of the DevExpress.ExpressApp.DC.TypeInfo.DefaultPropertyNames values (Name, Title, Subject, Caption, Description, Benennung, Nombre, Nome). These values are arranged in priority order. For example, if a business class has both ObjectName and Description properties, DefaultMember returns ObjectName.
  3. The property specified by the class’s FriendlyKeyPropertyAttribute.
  4. The property specified by the class’s KeyAttribute.

The following behavior is specific to the default members:

  • Lookup Property Editors display default member values.
  • Default members take part in form caption generation.
  • In List Views, reference property columns display values of a referenced object’s default member. The FullTextSearch Action considers these values when it filters objects.
  • List Views display the default member column first.
See Also