The DefinitionKeyAttribute can be assigned to properties of your selected object to define which EditorDefinition to use for the decorated property. As an alternative to the Editor attribute, this allows you separate the UI-specific code from your business model code. It can also be used to specify a specific default editor when a property type does not resolve to a valid editor (e.g., Object).
[AttributeUsage(AttributeTargets.Property,
AllowMultiple=false,
Inherited=true)]
public class DefinitionKeyAttribute : System.Attribute
'Declaration
<AttributeUsageAttribute(AttributeTargets.Property,
AllowMultiple=False,
Inherited=True)>
Public Class DefinitionKeyAttribute
Inherits System.Attribute
Target Platforms: Windows 11, Windows 10, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2