Automation.RemoveStructureChangedEventHandler 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
移除指定的結構變更事件處理程序。
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),針對指定的 使用者介面自動化 元素。