IInvokeProvider 介面

定義

公開方法與屬性,以支援使用者介面自動化用戶端存取起始或執行單一明確動作的控制項,且啟動時不會維護狀態。Exposes methods and properties to support UI Automation client access to controls that initiate or perform a single, unambiguous action and do not maintain state when activated.

public interface class IInvokeProvider
public interface IInvokeProvider
[System.Runtime.InteropServices.ComVisible(true)]
[System.Runtime.InteropServices.Guid("54fcb24b-e18e-47a2-b4d3-eccbe77599a2")]
[System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
public interface IInvokeProvider
type IInvokeProvider = interface
[<System.Runtime.InteropServices.ComVisible(true)>]
[<System.Runtime.InteropServices.Guid("54fcb24b-e18e-47a2-b4d3-eccbe77599a2")>]
[<System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)>]
type IInvokeProvider = interface
Public Interface IInvokeProvider
衍生
屬性

備註

在必須支援控制項模式的消費者介面自動化提供者上執行 InvokePatternImplemented on a UI Automation provider that must support the InvokePattern control pattern.

如果未透過另一個控制項模式提供者來公開相同的行為,則控制項會實作 IInvokeProviderControls implement IInvokeProvider if the same behavior is not exposed through another control pattern provider. 例如,如果控制項的 Invoke 方法所執行的動作與 ExpandCollapse 方法相同,該控制項就不應實作 IInvokeProviderFor example, if the Invoke method on a control performs the same action as the Expand or Collapse method, the control should not implement IInvokeProvider.

方法

Invoke()

傳送要求以啟動控制項,並啟始其單一明確的動作。Sends a request to activate a control and initiate its single, unambiguous action.

適用於

另請參閱