FakeRedactionServiceCollectionExtensions.AddFakeRedaction 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
AddFakeRedaction(IServiceCollection) |
Mendaftarkan penyedia redactor palsu yang selalu mengembalikan instans redactor palsu. |
AddFakeRedaction(IServiceCollection, Action<FakeRedactorOptions>) |
Mendaftarkan penyedia redactor palsu yang selalu mengembalikan instans redactor palsu. |
AddFakeRedaction(IServiceCollection)
Mendaftarkan penyedia redactor palsu yang selalu mengembalikan instans redactor palsu.
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::Extensions::DependencyInjection::IServiceCollection ^ AddFakeRedaction(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services);
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddFakeRedaction (this Microsoft.Extensions.DependencyInjection.IServiceCollection services);
static member AddFakeRedaction : Microsoft.Extensions.DependencyInjection.IServiceCollection -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddFakeRedaction (services As IServiceCollection) As IServiceCollection
Parameter
- services
- IServiceCollection
Kontainer yang digunakan untuk mendaftarkan kelas redaksi palsu.
Mengembalikan
Nilai dari services
.
Pengecualian
services
adalah null
.
Berlaku untuk
AddFakeRedaction(IServiceCollection, Action<FakeRedactorOptions>)
Mendaftarkan penyedia redactor palsu yang selalu mengembalikan instans redactor palsu.
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::Extensions::DependencyInjection::IServiceCollection ^ AddFakeRedaction(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services, Action<Microsoft::Extensions::Compliance::Testing::FakeRedactorOptions ^> ^ configure);
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddFakeRedaction (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Action<Microsoft.Extensions.Compliance.Testing.FakeRedactorOptions> configure);
static member AddFakeRedaction : Microsoft.Extensions.DependencyInjection.IServiceCollection * Action<Microsoft.Extensions.Compliance.Testing.FakeRedactorOptions> -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddFakeRedaction (services As IServiceCollection, configure As Action(Of FakeRedactorOptions)) As IServiceCollection
Parameter
- services
- IServiceCollection
Kontainer yang digunakan untuk mendaftarkan kelas redaksi palsu.
- configure
- Action<FakeRedactorOptions>
Mengonfigurasi redactor palsu.
Mengembalikan
Nilai dari services
.
Pengecualian
services
atau configure
> adalah null
.