PlannedTest.DeclaringFilePath 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得宣告測試的原始檔案路徑。 此值在編譯時 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
屬性值
- 屬性