AutomationConnectionBoundObject 类

定义

表示与特定 UI 自动化提供程序连接关联的对象。

public ref class AutomationConnectionBoundObject sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.UI.UIAutomation.UIAutomationContract, 131072)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class AutomationConnectionBoundObject final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.UI.UIAutomation.UIAutomationContract), 131072)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class AutomationConnectionBoundObject
Public NotInheritable Class AutomationConnectionBoundObject
继承
Object Platform::Object IInspectable AutomationConnectionBoundObject
属性

Windows 要求

设备系列
Windows 11 (在 10.0.22000.0 中引入)
API contract
Windows.UI.UIAutomation.UIAutomationContract (在 v2.0 中引入)

注解

UI 自动化 (UIA) 客户端将连接绑定对象导入远程操作,然后在调用扩展时将其用作目标对象,或将其作为操作数传递给扩展。

提供程序端扩展处理程序始终在计算远程操作的线程上执行。 每当提供程序将操作数设置为连接绑定对象时,此对象的线程模型将由提供程序实现 ICoreAutomationConnectionBoundObjectProvider 接口上的 IsComThreadingRequired 属性的值确定。 如果此属性为 true,并且连接绑定对象在远程操作的结果中返回,则连接绑定对象将绑定到评估首次引入对象的远程操作的公寓。

此对象包装由 UIA 提供程序实现的 ICoreAutomationConnectionBoundObjectProvider

属性

Connection

获取连接绑定对象的连接详细信息。

适用于

另请参阅