RunInfo.AgentMachine 属性

获取测试运行所在的计算机的名称。

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

语法

声明
Public ReadOnly Property AgentMachine As String
    Get
public string AgentMachine { get; }
public:
property String^ AgentMachine {
    String^ get ();
}
member AgentMachine : string
function get AgentMachine () : String

属性值

类型:System.String
一个包含计算机名称的 string。

.NET Framework 安全性

请参见

参考

RunInfo 类

Microsoft.VisualStudio.TestTools.Common 命名空间

ComputerInfo