共用方式為


TestElement.Description 屬性

取得或設定這個測試項目的描述。

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

語法

'宣告
<PropertyWindowAttribute> _
<GroupingPropertyAttribute> _
<UserVisiblePropertyAttribute("{B65344DF-319D-4a50-B8FB-0292317C6E8A}")> _
Public Overridable Property Description As String
    Get
    Set
[PropertyWindowAttribute]
[GroupingPropertyAttribute]
[UserVisiblePropertyAttribute("{B65344DF-319D-4a50-B8FB-0292317C6E8A}")]
public virtual string Description { get; set; }
[PropertyWindowAttribute]
[GroupingPropertyAttribute]
[UserVisiblePropertyAttribute(L"{B65344DF-319D-4a50-B8FB-0292317C6E8A}")]
public:
virtual property String^ Description {
    String^ get ();
    void set (String^ value);
}
[<PropertyWindowAttribute>]
[<GroupingPropertyAttribute>]
[<UserVisiblePropertyAttribute("{B65344DF-319D-4a50-B8FB-0292317C6E8A}")>]
abstract Description : string with get, set
[<PropertyWindowAttribute>]
[<GroupingPropertyAttribute>]
[<UserVisiblePropertyAttribute("{B65344DF-319D-4a50-B8FB-0292317C6E8A}")>]
override Description : string with get, set
function get Description () : String
function set Description (value : String)

屬性值

型別:System.String
這個測試項目的描述。

實作

ITestElement.Description

.NET Framework 安全性

請參閱

參考

TestElement 類別

Microsoft.VisualStudio.TestTools.Common 命名空間