返回指示关联元素是否受保护的值。
命名空间: Microsoft.VisualStudio.TestTools.UITest.Common
程序集: Microsoft.VisualStudio.TestTools.UITest.Common(Microsoft.VisualStudio.TestTools.UITest.Common.dll 中)
语法
public bool IsActionOnProtectedElement()
public:
bool IsActionOnProtectedElement()
member IsActionOnProtectedElement : unit -> bool
Public Function IsActionOnProtectedElement As Boolean
返回值
Type: System.Boolean
如果值已加密或 IsEncoded 属性为 true,又或者元素为密码字段,则为 true;如果文本与 Tab、Enter 或 Escape 键等效,则为 false。
请参阅
IsEncoded
Keys
SendKeysAction 类
Microsoft.VisualStudio.TestTools.UITest.Common 命名空间
返回页首