ExceptionSummarizationServiceCollectionExtensions.AddExceptionSummarizer Metode
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.
Overload
AddExceptionSummarizer(IServiceCollection) |
Mendaftarkan ringkasan pengecualian ke dalam kontainer injeksi dependensi. |
AddExceptionSummarizer(IServiceCollection, Action<IExceptionSummarizationBuilder>) |
Mendaftarkan ringkasan pengecualian ke dalam kontainer injeksi dependensi. |
AddExceptionSummarizer(IServiceCollection)
Mendaftarkan ringkasan pengecualian ke dalam kontainer injeksi dependensi.
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::Extensions::DependencyInjection::IServiceCollection ^ AddExceptionSummarizer(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services);
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddExceptionSummarizer (this Microsoft.Extensions.DependencyInjection.IServiceCollection services);
static member AddExceptionSummarizer : Microsoft.Extensions.DependencyInjection.IServiceCollection -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddExceptionSummarizer (services As IServiceCollection) As IServiceCollection
Parameter
- services
- IServiceCollection
Kontainer injeksi dependensi untuk menambahkan summarizer.
Mengembalikan
Nilai dari services
.
Pengecualian
services
adalah null
.
Berlaku untuk
AddExceptionSummarizer(IServiceCollection, Action<IExceptionSummarizationBuilder>)
Mendaftarkan ringkasan pengecualian ke dalam kontainer injeksi dependensi.
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::Extensions::DependencyInjection::IServiceCollection ^ AddExceptionSummarizer(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services, Action<Microsoft::Extensions::Diagnostics::ExceptionSummarization::IExceptionSummarizationBuilder ^> ^ configure);
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddExceptionSummarizer (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Action<Microsoft.Extensions.Diagnostics.ExceptionSummarization.IExceptionSummarizationBuilder> configure);
static member AddExceptionSummarizer : Microsoft.Extensions.DependencyInjection.IServiceCollection * Action<Microsoft.Extensions.Diagnostics.ExceptionSummarization.IExceptionSummarizationBuilder> -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddExceptionSummarizer (services As IServiceCollection, configure As Action(Of IExceptionSummarizationBuilder)) As IServiceCollection
Parameter
- services
- IServiceCollection
Kontainer injeksi dependensi untuk menambahkan summarizer.
- configure
- Action<IExceptionSummarizationBuilder>
Delegasi yang mengonfigurasi kumpulan penyedia ringkasan terdaftar.
Mengembalikan
Nilai dari services
.
Pengecualian
services
atau configure
adalah null
.