DataProtectionServiceCollectionExtensions.AddDataProtection メソッド

定義

オーバーロード

AddDataProtection(IServiceCollection)

指定した にデータ保護サービスを追加します IServiceCollection

AddDataProtection(IServiceCollection, Action<DataProtectionOptions>)

指定した にデータ保護サービスを追加します IServiceCollection

AddDataProtection(IServiceCollection)

指定した にデータ保護サービスを追加します IServiceCollection

public static Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder AddDataProtection (this Microsoft.Extensions.DependencyInjection.IServiceCollection services);
static member AddDataProtection : Microsoft.Extensions.DependencyInjection.IServiceCollection -> Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder
<Extension()>
Public Function AddDataProtection (services As IServiceCollection) As IDataProtectionBuilder

パラメーター

services
IServiceCollection

サービスを追加する先の IServiceCollection

戻り値

適用対象

AddDataProtection(IServiceCollection, Action<DataProtectionOptions>)

指定した にデータ保護サービスを追加します IServiceCollection

public static Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder AddDataProtection (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Action<Microsoft.AspNetCore.DataProtection.DataProtectionOptions> setupAction);
static member AddDataProtection : Microsoft.Extensions.DependencyInjection.IServiceCollection * Action<Microsoft.AspNetCore.DataProtection.DataProtectionOptions> -> Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder
<Extension()>
Public Function AddDataProtection (services As IServiceCollection, setupAction As Action(Of DataProtectionOptions)) As IDataProtectionBuilder

パラメーター

services
IServiceCollection

サービスを追加する先の IServiceCollection

setupAction
Action<DataProtectionOptions>

指定した DataProtectionOptions を構成する Action<T>

戻り値

操作が完了した後のこのインスタンスへの参照。

適用対象