HostRunConfigurationData.CurrentHostType 屬性
這個 API 支援 .NET Framework 基礎結構,但您不可以直接在程式碼中使用它。
取得目前測試回合主機的描述。
命名空間: Microsoft.VisualStudio.TestTools.Common
組件: Microsoft.VisualStudio.QualityTools.Common (在 Microsoft.VisualStudio.QualityTools.Common.dll 中)
語法
'宣告
Public Property CurrentHostType As String
public string CurrentHostType { get; set; }
public:
property String^ CurrentHostType {
String^ get ();
void set (String^ value);
}
member CurrentHostType : string with get, set
function get CurrentHostType () : String
function set CurrentHostType (value : String)
屬性值
型別:System.String
目前測試回合主機的描述,但如果沒有選取任何主機,則為 nullnull 參考 (即 Visual Basic 中的 Nothing)。
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。