'Declaration Public Event RoleSelected As RoleSelectedEventHandler
public event RoleSelectedEventHandler RoleSelected
The event handler receives an argument of type RoleSelectedEventArgs containing data related to this event. The following RoleSelectedEventArgs properties provide information specific to this event.
Property | Description |
---|---|
Action | Returns the action that should be taken by the listener. |
ComponentRole | Returns the ComponentRole for which the role or component role is being selected. |
ComponentRoleName | Returns the name of the associated ComponentRole. |
RoleName | Returns the name of the associated UIRole. |
The event is only invoked when the Enabled is set to true.
Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, 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