SendKeysAction.IsActionOnProtectedElement 方法

返回指示关联元素是否受保护的值。

命名空间:  Microsoft.VisualStudio.TestTools.UITest.Common
程序集:  Microsoft.VisualStudio.TestTools.UITest.Common(在 Microsoft.VisualStudio.TestTools.UITest.Common.dll 中)

语法

声明
Public Function IsActionOnProtectedElement As Boolean
public bool IsActionOnProtectedElement()
public:
bool IsActionOnProtectedElement()
member IsActionOnProtectedElement : unit -> bool 
public function IsActionOnProtectedElement() : boolean

返回值

类型:System.Boolean
如果值已加密或 IsEncoded 属性为 true,又或者元素为密码字段,则为 true;如果文本与 TabEnterEscape 键等效,则为 false。

.NET Framework 安全性

请参见

参考

SendKeysAction 类

Microsoft.VisualStudio.TestTools.UITest.Common 命名空间

IsEncoded

Keys