共用方式為


TestElement.HostData 屬性

取得或設定資料,此資料可供 HostType 屬性可識別的自訂主機使用。

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

語法

'宣告
<PropertyWindowAttribute> _
Public Overridable Property HostData As String
[PropertyWindowAttribute]
public virtual string HostData { get; set; }
[PropertyWindowAttribute]
public:
virtual property String^ HostData {
    String^ get ();
    void set (String^ value);
}
[<PropertyWindowAttribute>]
abstract HostData : string with get, set
[<PropertyWindowAttribute>]
override HostData : string with get, set
function get HostData () : String
function set HostData (value : String)

屬性值

型別:System.String
包含自訂主機所使用的資料的string。

.NET Framework 安全性

請參閱

參考

TestElement 類別

Microsoft.VisualStudio.TestTools.Common 命名空間

HostType