/// <inheritdoc /> public AutomationEventHandlerBase RegisterAutomationEvent(EventId @event, TreeScope treeScope, Action <AutomationElement, EventId> action) { if (Equals(@event, EventId.NotSupportedByFramework)) { throw new NotSupportedByFrameworkException(); } return(FrameworkAutomationElement.RegisterAutomationEvent(@event, treeScope, action)); }