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

ITypeInfo.DefaultMember Property

Supplies metadata on the current type’s default member.

Namespace: DevExpress.ExpressApp.DC

Assembly: DevExpress.ExpressApp.v19.1.dll

Declaration

IMemberInfo DefaultMember { get; }

Property Value

Type Description
IMemberInfo

An IMemberInfo object that supplies metadata on the current type’s default member.

Remarks

The default member is the property to which the DefaultPropertyAttribute is applied. If this attribute is not applied to any business class’ properties (including inherited properties), a property called “Name” is searched for, to be set as the default. If this property cannot be found, the property specified by the FriendlyKeyPropertyAttribute is considered the default. If the FriendlyKeyPropertyAttribute is not applied to any property, the property that uses the KeyAttribute is searched for. If there is none, the default key property is considered the default.

If a property is the default, then:

  • It is displayed in Lookup Property Editors.
  • It takes part in form caption generation.
  • It is used in the FullTextSearch Action’s engine.
  • It is displayed first in List Views.
See Also