共用方式為


TestElement.SourceFileName 屬性

取得此項目之測試的路徑和檔案名稱。

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

語法

'宣告
<VisiblePropertyAttribute> _
Public Property SourceFileName As String
[VisiblePropertyAttribute]
public string SourceFileName { get; set; }
[VisiblePropertyAttribute]
public:
virtual property String^ SourceFileName {
    String^ get () sealed;
    void set (String^ value) sealed;
}
[<VisiblePropertyAttribute>]
abstract SourceFileName : string with get, set
[<VisiblePropertyAttribute>]
override SourceFileName : string with get, set
final function get SourceFileName () : String
final function set SourceFileName (value : String)

屬性值

型別:System.String
包含此項目之測試的路徑和檔案名稱。

實作

ITestElement.SourceFileName

.NET Framework 安全性

請參閱

參考

TestElement 類別

Microsoft.VisualStudio.TestTools.Common 命名空間