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
属性值
- 属性