語言

PlannedTest.DeclaringFilePath 屬性

定義

取得宣告測試的原始檔案路徑。 此值在編譯時 TestMethodAttribute由 捕捉;它可透過 null 自訂測試方法屬性宣告測試,該屬性不傳遞呼叫者資訊。

public string? DeclaringFilePath { get; }
[System.Runtime.CompilerServices.Nullable(2)]
public string? DeclaringFilePath { get; }
member this.DeclaringFilePath : string
[<System.Runtime.CompilerServices.Nullable(2)>]
member this.DeclaringFilePath : string
Public ReadOnly Property DeclaringFilePath As String

屬性值

屬性

適用於