PlannedTest.DeclaringFilePath プロパティ
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
テストを宣言するソース ファイルのパスを取得します。 この値は、コンパイル時に TestMethodAttributeによってキャプチャされます。呼び出し元情報を伝達しないカスタム test-method 属性を使用してテストを宣言するときに 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
プロパティ値
- 属性