共用方式為


TestElement.ProjectRelativePath 屬性

取得包含這個測試項目之測試專案的相對路徑。

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

語法

'宣告
<UserVisiblePropertyAttribute("{E0D317A6-6F41-455d-BD72-B4344CC5EC0B}")> _
<PropertyWindowAttribute> _
Public Overridable ReadOnly Property ProjectRelativePath As String
[UserVisiblePropertyAttribute("{E0D317A6-6F41-455d-BD72-B4344CC5EC0B}")]
[PropertyWindowAttribute]
public virtual string ProjectRelativePath { get; }
[UserVisiblePropertyAttribute(L"{E0D317A6-6F41-455d-BD72-B4344CC5EC0B}")]
[PropertyWindowAttribute]
public:
virtual property String^ ProjectRelativePath {
    String^ get ();
}
[<UserVisiblePropertyAttribute("{E0D317A6-6F41-455d-BD72-B4344CC5EC0B}")>]
[<PropertyWindowAttribute>]
abstract ProjectRelativePath : string with get
[<UserVisiblePropertyAttribute("{E0D317A6-6F41-455d-BD72-B4344CC5EC0B}")>]
[<PropertyWindowAttribute>]
override ProjectRelativePath : string with get
function get ProjectRelativePath () : String

屬性值

型別:System.String
包含這個測試項目之測試專案的相對路徑。

實作

ITestElement.ProjectRelativePath

.NET Framework 安全性

請參閱

參考

TestElement 類別

Microsoft.VisualStudio.TestTools.Common 命名空間