ExecutableConditionAttribute.GroupName 属性

定义

获取此属性的组名称。 每个命令 -- 与 Mode -- 组合在一起,形成自己的组,因此需要多个不同的命令与逻辑 AND 相结合,而具有相同模式的命令不会无提示地取消(镜像 MemberConditionAttribute)。

public override string GroupName { get; }
member this.GroupName : string
Public Overrides ReadOnly Property GroupName As String

属性值

注解

这两种计算模式为前缀(presence vs run),段以 null 字符分隔,该字符不能显示在可执行名称或参数中。 这样,状态检查是否存在可执行文件的名称"foo bar"与使用参数bar运行的foo可执行文件不同。 TimeoutSeconds 是有意排除的,因此具有相同超时的命令仍然组合在一起(逻辑 OR):它不是其他超时重新评估的 Microsoft.VisualStudio.TestTools.UnitTesting.ExecutableConditionAttribute.CacheKey 一部分。

适用于