SendKeysAction 构造函数 (UITechnologyElement)
使用提供的 UI 元素初始化 SendKeysAction 类的新实例。
命名空间: Microsoft.VisualStudio.TestTools.UITest.Common
程序集: Microsoft.VisualStudio.TestTools.UITest.Common(在 Microsoft.VisualStudio.TestTools.UITest.Common.dll 中)
语法
声明
Public Sub New ( _
element As UITechnologyElement _
)
public SendKeysAction(
UITechnologyElement element
)
public:
SendKeysAction(
UITechnologyElement^ element
)
new :
element:UITechnologyElement -> SendKeysAction
public function SendKeysAction(
element : UITechnologyElement
)
参数
- element
类型:Microsoft.VisualStudio.TestTools.UITest.Extension.UITechnologyElement
一个 UITechnologyElement 对象,表示在其上发送键的元素。
备注
发送键不能用于模拟测试录制。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。