Assert.AssertNonStrictThrowsAsyncInterpolatedStringHandler<TException> 结构
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
提供重载使用的 Assert.ThrowsAsync 内插字符串处理程序,该处理程序仅在断言失败时分配消息并设置消息格式。
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
public readonly struct Assert.AssertNonStrictThrowsAsyncInterpolatedStringHandler<TException> where TException : Exception
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
[System.Diagnostics.StackTraceHidden]
[System.Runtime.CompilerServices.InterpolatedStringHandler]
[System.Runtime.CompilerServices.IsReadOnly]
[System.Runtime.CompilerServices.Nullable(0)]
public readonly struct Assert.AssertNonStrictThrowsAsyncInterpolatedStringHandler<TException> where TException : Exception
[<System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)>]
type Assert.AssertNonStrictThrowsAsyncInterpolatedStringHandler<'Exception (requires 'Exception :> Exception)> = struct
[<System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)>]
[<System.Diagnostics.StackTraceHidden>]
[<System.Runtime.CompilerServices.InterpolatedStringHandler>]
[<System.Runtime.CompilerServices.IsReadOnly>]
[<System.Runtime.CompilerServices.Nullable(0)>]
type Assert.AssertNonStrictThrowsAsyncInterpolatedStringHandler<'Exception (requires 'Exception :> Exception)> = struct
Public Structure Assert.AssertNonStrictThrowsAsyncInterpolatedStringHandler(Of TException)
类型参数
- TException
应引发的异常类型。
- 继承
-
Assert.AssertNonStrictThrowsAsyncInterpolatedStringHandler<TException>
- 属性
注解
此类型供编译器使用;用户不应直接引用它。
构造函数
| 名称 | 说明 |
|---|---|
| Assert.AssertNonStrictThrowsAsyncInterpolatedStringHandler<TException>(Int32, Int32, Func<Task>, Boolean) |
初始化 结构的新实例 Assert.AssertNonStrictThrowsAsyncInterpolatedStringHandler<TException> 。 |
方法
| 名称 | 说明 |
|---|---|
| AppendFormatted(Object, Int32, String) |
提供重载使用的 |
| AppendFormatted(ReadOnlySpan<Char>, Int32, String) |
提供重载使用的 |
| AppendFormatted(ReadOnlySpan<Char>) |
提供重载使用的 |
| AppendFormatted(String, Int32, String) |
提供重载使用的 |
| AppendFormatted(String) |
提供重载使用的 |
| AppendFormatted<T>(T, Int32, String) |
提供重载使用的 |
| AppendFormatted<T>(T, Int32) |
提供重载使用的 |
| AppendFormatted<T>(T, String) |
提供重载使用的 |
| AppendFormatted<T>(T) |
提供重载使用的 |
| AppendLiteral(String) |
提供重载使用的 |