Share via


Automation.RemoveStructureChangedEventHandler 方法

定义

移除指定的 structure-changed 事件处理程序。

public:
 static void RemoveStructureChangedEventHandler(System::Windows::Automation::AutomationElement ^ element, System::Windows::Automation::StructureChangedEventHandler ^ eventHandler);
public static void RemoveStructureChangedEventHandler (System.Windows.Automation.AutomationElement element, System.Windows.Automation.StructureChangedEventHandler eventHandler);
static member RemoveStructureChangedEventHandler : System.Windows.Automation.AutomationElement * System.Windows.Automation.StructureChangedEventHandler -> unit
Public Shared Sub RemoveStructureChangedEventHandler (element As AutomationElement, eventHandler As StructureChangedEventHandler)

参数

element
AutomationElement

要从中删除事件处理程序的 UI 自动化 元素。

eventHandler
StructureChangedEventHandler

为指定的 UI 自动化 元素传递给 AddStructureChangedEventHandler(AutomationElement, TreeScope, StructureChangedEventHandler) 的处理程序方法。

适用于

另请参阅