IUIAutomation::RemovePropertyChangedEventHandler Method
Removes a property-changed event handler.
Syntax
HRESULT RemovePropertyChangedEventHandler( IUIAutomationElement *element, IUIAutomationPropertyChangedEventHandler *handler );
Parameters
- element
[in] The address of the IUIAutomationElement interface of the UI Automation element from which to remove the handler.- handler
[in] The interface that was passed to IUIAutomation::AddPropertyChangedEventHandler.
Return Value
Returns S_OK if successful, or an error value otherwise.
Remarks
A UI Automation client should not use multiple threads to add or remove event handlers. Unexpected behavior can result if one event handler is being added or removed while another is being added or removed in the same client process.
See Also
IUIAutomation::RemoveAllEventHandlers, IUIAutomation::RemoveAutomationEventHandler, IUIAutomation::RemoveFocusChangedEventHandler, IUIAutomation::RemoveStructureChangedEventHandler