Udostępnij za pośrednictwem


ButtonAutomationPeer.Invoke Method

Definition

Sends a request to click the button associated with the automation peer.

public:
 virtual void Invoke() = Invoke;
void Invoke();
public void Invoke();
function invoke()
Public Sub Invoke ()

Implements

Remarks

Calls to Invoke should return immediately without blocking. However, this behavior is entirely dependent on the Microsoft UI Automation provider implementation. In scenarios where calling Invoke causes a blocking issue, such as a modal dialog, a separate helper thread may be required to call the method.

Applies to