DataProtectionServiceCollectionExtensions.AddDataProtection Methode

Definition

Überlädt

AddDataProtection(IServiceCollection)

Fügt dem angegebenen IServiceCollectionDatenschutzdienste hinzu.

AddDataProtection(IServiceCollection, Action<DataProtectionOptions>)

Fügt dem angegebenen IServiceCollectionDatenschutzdienste hinzu.

AddDataProtection(IServiceCollection)

Fügt dem angegebenen IServiceCollectionDatenschutzdienste hinzu.

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

Parameter

services
IServiceCollection

Die IServiceCollection, der Dienste hinzugefügt werden sollen.

Gibt zurück

Gilt für:

AddDataProtection(IServiceCollection, Action<DataProtectionOptions>)

Fügt dem angegebenen IServiceCollectionDatenschutzdienste hinzu.

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

Parameter

services
IServiceCollection

Die IServiceCollection, der Dienste hinzugefügt werden sollen.

setupAction
Action<DataProtectionOptions>

Eine Action<T> zum Konfigurieren des bereitgestellten DataProtectionOptions-Elements.

Gibt zurück

Ein Verweis auf diese Instanz, nachdem der Vorgang abgeschlossen ist.

Gilt für: