共用方式為


TestElement.Name 屬性

取得或設定這個測試項目的名稱。

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

語法

'宣告
<UserVisiblePropertyAttribute("{A9405AE6-9AC6-4f0e-A03F-7AFE45F6FCB7}")> _
<PropertyWindowAttribute> _
Public Overridable Property Name As String
    Get
    Set
[UserVisiblePropertyAttribute("{A9405AE6-9AC6-4f0e-A03F-7AFE45F6FCB7}")]
[PropertyWindowAttribute]
public virtual string Name { get; set; }
[UserVisiblePropertyAttribute(L"{A9405AE6-9AC6-4f0e-A03F-7AFE45F6FCB7}")]
[PropertyWindowAttribute]
public:
virtual property String^ Name {
    String^ get ();
    void set (String^ value);
}
[<UserVisiblePropertyAttribute("{A9405AE6-9AC6-4f0e-A03F-7AFE45F6FCB7}")>]
[<PropertyWindowAttribute>]
abstract Name : string with get, set
[<UserVisiblePropertyAttribute("{A9405AE6-9AC6-4f0e-A03F-7AFE45F6FCB7}")>]
[<PropertyWindowAttribute>]
override Name : string with get, set
function get Name () : String
function set Name (value : String)

屬性值

型別:System.String
此測試項目的名稱。

實作

ITestElement.Name

.NET Framework 安全性

請參閱

參考

TestElement 類別

Microsoft.VisualStudio.TestTools.Common 命名空間