共用方式為


IRunContext.AgentName 屬性

取得正在執行測試的電腦名稱。

命名空間:  Microsoft.VisualStudio.TestTools.Execution
組件:  Microsoft.VisualStudio.QualityTools.ExecutionCommon (在 Microsoft.VisualStudio.QualityTools.ExecutionCommon.dll 中)

語法

'宣告
ReadOnly Property AgentName As String
string AgentName { get; }
property String^ AgentName {
    String^ get ();
}
abstract AgentName : string with get
function get AgentName () : String

屬性值

型別:System.String
正在執行測試的電腦名稱。

.NET Framework 安全性

請參閱

參考

IRunContext 介面

Microsoft.VisualStudio.TestTools.Execution 命名空間