共用方式為


TestElement.HumanReadableId 屬性

取得這個測試項目顯示在使用者介面中的 ID。

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

語法

'宣告
<UserVisiblePropertyAttribute("{A9405AE6-9AC6-4f0e-A03F-7AFE45F6FDB7}")> _
<PropertyWindowAttribute> _
Public Overridable ReadOnly Property HumanReadableId As String
    Get
[UserVisiblePropertyAttribute("{A9405AE6-9AC6-4f0e-A03F-7AFE45F6FDB7}")]
[PropertyWindowAttribute]
public virtual string HumanReadableId { get; }
[UserVisiblePropertyAttribute(L"{A9405AE6-9AC6-4f0e-A03F-7AFE45F6FDB7}")]
[PropertyWindowAttribute]
public:
virtual property String^ HumanReadableId {
    String^ get ();
}
[<UserVisiblePropertyAttribute("{A9405AE6-9AC6-4f0e-A03F-7AFE45F6FDB7}")>]
[<PropertyWindowAttribute>]
abstract HumanReadableId : string
[<UserVisiblePropertyAttribute("{A9405AE6-9AC6-4f0e-A03F-7AFE45F6FDB7}")>]
[<PropertyWindowAttribute>]
override HumanReadableId : string
function get HumanReadableId () : String

屬性值

型別:System.String
這個測試項目顯示在使用者介面中的 ID。

實作

ITestElement.HumanReadableId

.NET Framework 安全性

請參閱

參考

TestElement 類別

Microsoft.VisualStudio.TestTools.Common 命名空間