共用方式為


RedactionServiceCollectionExtensions.AddRedaction 方法

定義

多載

AddRedaction(IServiceCollection)

IServiceCollection中註冊 IRedactorProvider 實作。

AddRedaction(IServiceCollection, Action<IRedactionBuilder>)

IServiceCollection 中註冊 IRedactorProvider 的實作,並設定可用的 redactors。

AddRedaction(IServiceCollection)

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

IServiceCollection中註冊 IRedactorProvider 實作。

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的值。

例外狀況

services null

適用於

AddRedaction(IServiceCollection, Action<IRedactionBuilder>)

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

IServiceCollection 中註冊 IRedactorProvider 的實作,並設定可用的 redactors。

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的值。

例外狀況

configure null

適用於