Assert.AssertNonStrictThrowsAsyncInterpolatedStringHandler<TException> Struktur
Definisi
Penting
Beberapa informasi terkait produk prarilis yang dapat diubah secara signifikan sebelum dirilis. Microsoft tidak memberikan jaminan, tersirat maupun tersurat, sehubungan dengan informasi yang diberikan di sini.
Menyediakan handler string terinterpolasi yang digunakan oleh Assert.ThrowsAsync kelebihan beban yang hanya mengalokasikan dan memformat pesan saat pernyataan gagal.
[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)]
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)>]
type Assert.AssertNonStrictThrowsAsyncInterpolatedStringHandler<'Exception (requires 'Exception :> Exception)> = struct
[<System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)>]
type Assert.AssertNonStrictThrowsAsyncInterpolatedStringHandler<'Exception (requires 'Exception :> Exception)> = struct
Public Structure Assert.AssertNonStrictThrowsAsyncInterpolatedStringHandler(Of TException)
Jenis parameter
- TException
Jenis pengecualian yang diharapkan akan dilemparkan.
- Warisan
-
Assert.AssertNonStrictThrowsAsyncInterpolatedStringHandler<TException>
- Atribut
Keterangan
Jenis ini dimaksudkan untuk digunakan oleh pengkompilasi; pengguna tidak boleh mereferensikannya secara langsung.
Konstruktor
| Nama | Deskripsi |
|---|---|
| Assert.AssertNonStrictThrowsAsyncInterpolatedStringHandler<TException>(Int32, Int32, Func<Task>, Boolean) |
Menginisialisasi instans baru dari Assert.AssertNonStrictThrowsAsyncInterpolatedStringHandler<TException> struktur. |
Metode
| Nama | Deskripsi |
|---|---|
| AppendFormatted(Object, Int32, String) |
Menyediakan handler string terinterpolasi yang digunakan oleh |
| AppendFormatted(ReadOnlySpan<Char>, Int32, String) |
Menyediakan handler string terinterpolasi yang digunakan oleh |
| AppendFormatted(ReadOnlySpan<Char>) |
Menyediakan handler string terinterpolasi yang digunakan oleh |
| AppendFormatted(String, Int32, String) |
Menyediakan handler string terinterpolasi yang digunakan oleh |
| AppendFormatted(String) |
Menyediakan handler string terinterpolasi yang digunakan oleh |
| AppendFormatted<T>(T, Int32, String) |
Menyediakan handler string terinterpolasi yang digunakan oleh |
| AppendFormatted<T>(T, Int32) |
Menyediakan handler string terinterpolasi yang digunakan oleh |
| AppendFormatted<T>(T, String) |
Menyediakan handler string terinterpolasi yang digunakan oleh |
| AppendFormatted<T>(T) |
Menyediakan handler string terinterpolasi yang digunakan oleh |
| AppendLiteral(String) |
Menyediakan handler string terinterpolasi yang digunakan oleh |