共用方式為


Automation.RemoveStructureChangedEventHandler 方法

定義

移除指定之結構變更的事件處理常式。

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

要從中移除事件處理常式的消費者介面自動化專案。

eventHandler
StructureChangedEventHandler

針對指定的消費者介面自動化專案傳遞至 AddStructureChangedEventHandler(AutomationElement, TreeScope, StructureChangedEventHandler) 的處理常式方法。

適用於

另請參閱