TestElement.HumanReadableId 屬性
取得這個測試項目顯示在使用者介面中的 ID。
命名空間: Microsoft.VisualStudio.TestTools.Common
組件: Microsoft.VisualStudio.QualityTools.Common (在 Microsoft.VisualStudio.QualityTools.Common.dll 中)
語法
'宣告
<PropertyWindowAttribute> _
<UserVisiblePropertyAttribute("{A9405AE6-9AC6-4f0e-A03F-7AFE45F6FDB7}")> _
Public Overridable ReadOnly Property HumanReadableId As String
[PropertyWindowAttribute]
[UserVisiblePropertyAttribute("{A9405AE6-9AC6-4f0e-A03F-7AFE45F6FDB7}")]
public virtual string HumanReadableId { get; }
[PropertyWindowAttribute]
[UserVisiblePropertyAttribute(L"{A9405AE6-9AC6-4f0e-A03F-7AFE45F6FDB7}")]
public:
virtual property String^ HumanReadableId {
String^ get ();
}
[<PropertyWindowAttribute>]
[<UserVisiblePropertyAttribute("{A9405AE6-9AC6-4f0e-A03F-7AFE45F6FDB7}")>]
abstract HumanReadableId : string with get
[<PropertyWindowAttribute>]
[<UserVisiblePropertyAttribute("{A9405AE6-9AC6-4f0e-A03F-7AFE45F6FDB7}")>]
override HumanReadableId : string with get
function get HumanReadableId () : String
屬性值
型別:System.String
這個測試項目顯示在使用者介面中的 ID。
實作
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。