次の方法で共有


RedactionServiceCollectionExtensions.AddRedaction メソッド

定義

オーバーロード

AddRedaction(IServiceCollection)

の実装 IRedactorProvider を に登録します IServiceCollection

AddRedaction(IServiceCollection, Action<IRedactionBuilder>)

IServiceCollectionIRedactorProvider実装を登録し、使用可能な編集機能を構成します。

AddRedaction(IServiceCollection)

ソース:
RedactionServiceCollectionExtensions.cs
ソース:
RedactionServiceCollectionExtensions.cs

の実装 IRedactorProvider を に登録します IServiceCollection

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

IServiceCollectionIRedactorProvider実装を登録し、使用可能な編集機能を構成します。

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 です。

適用対象