PlaybackSettings.ShouldSearchFailFast 属性
获取或设置一个值指示是否搜索已快速失败或已完成搜索操作时间设置是否超时。
命名空间: Microsoft.VisualStudio.TestTools.UITesting
程序集: Microsoft.VisualStudio.TestTools.UITesting(在 Microsoft.VisualStudio.TestTools.UITesting.dll 中)
语法
声明
Public Property ShouldSearchFailFast As Boolean
Get
Set
public bool ShouldSearchFailFast { get; set; }
public:
property bool ShouldSearchFailFast {
bool get ();
void set (bool value);
}
member ShouldSearchFailFast : bool with get, set
function get ShouldSearchFailFast () : boolean
function set ShouldSearchFailFast (value : boolean)
属性值
类型:System.Boolean
如果搜索必须快速失败,则为 true;如果搜索必须在为搜索操作设置的超时期限之后失败,则为 false。
备注
搜索的超时时间设置为以毫秒为单位。
示例
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。