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 命名空间