共用方式為


RedactionServiceCollectionExtensions.AddRedaction 方法

定義

多載

AddRedaction(IServiceCollection)

在中註冊的實作IRedactorProviderIServiceCollection

AddRedaction(IServiceCollection, Action<IRedactionBuilder>)

在 中IServiceCollection註冊 的實作IRedactorProvider,並設定可用的重新執行者。

AddRedaction(IServiceCollection)

來源:
RedactionServiceCollectionExtensions.cs
來源:
RedactionServiceCollectionExtensions.cs

在中註冊的實作IRedactorProviderIServiceCollection

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::DependencyInjection::IServiceCollection ^ AddRedaction(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services);
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddRedaction (this Microsoft.Extensions.DependencyInjection.IServiceCollection services);
static member AddRedaction : Microsoft.Extensions.DependencyInjection.IServiceCollection -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddRedaction (services As IServiceCollection) As IServiceCollection

參數

services
IServiceCollection

用來設定修訂的 IServiceCollection 實例。

傳回

services 的值。

例外狀況

servicesnull

適用於

AddRedaction(IServiceCollection, Action<IRedactionBuilder>)

來源:
RedactionServiceCollectionExtensions.cs
來源:
RedactionServiceCollectionExtensions.cs

在 中IServiceCollection註冊 的實作IRedactorProvider,並設定可用的重新執行者。

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::DependencyInjection::IServiceCollection ^ AddRedaction(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services, Action<Microsoft::Extensions::Compliance::Redaction::IRedactionBuilder ^> ^ configure);
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddRedaction (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Action<Microsoft.Extensions.Compliance.Redaction.IRedactionBuilder> configure);
static member AddRedaction : Microsoft.Extensions.DependencyInjection.IServiceCollection * Action<Microsoft.Extensions.Compliance.Redaction.IRedactionBuilder> -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddRedaction (services As IServiceCollection, configure As Action(Of IRedactionBuilder)) As IServiceCollection

參數

services
IServiceCollection

用來設定修訂的 IServiceCollection 實例。

configure
Action<IRedactionBuilder>

的組態函式 IRedactionBuilder

傳回

services 的值。

例外狀況

configurenull

適用於