Partager via


DataProtectionServiceCollectionExtensions.AddDataProtection Méthode

Définition

Surcharges

AddDataProtection(IServiceCollection)

Ajoute des services de protection des données au spécifié IServiceCollection.

AddDataProtection(IServiceCollection, Action<DataProtectionOptions>)

Ajoute des services de protection des données au spécifié IServiceCollection.

AddDataProtection(IServiceCollection)

Source:
DataProtectionServiceCollectionExtensions.cs
Source:
DataProtectionServiceCollectionExtensions.cs
Source:
DataProtectionServiceCollectionExtensions.cs
Source:
DataProtectionServiceCollectionExtensions.cs
Source:
DataProtectionServiceCollectionExtensions.cs
Source:
DataProtectionServiceCollectionExtensions.cs
Source:
DataProtectionServiceCollectionExtensions.cs
Source:
DataProtectionServiceCollectionExtensions.cs

Ajoute des services de protection des données au spécifié 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

Paramètres

services
IServiceCollection

IServiceCollection auquel ajouter les services.

Retours

S’applique à

AddDataProtection(IServiceCollection, Action<DataProtectionOptions>)

Source:
DataProtectionServiceCollectionExtensions.cs
Source:
DataProtectionServiceCollectionExtensions.cs
Source:
DataProtectionServiceCollectionExtensions.cs
Source:
DataProtectionServiceCollectionExtensions.cs
Source:
DataProtectionServiceCollectionExtensions.cs
Source:
DataProtectionServiceCollectionExtensions.cs
Source:
DataProtectionServiceCollectionExtensions.cs
Source:
DataProtectionServiceCollectionExtensions.cs

Ajoute des services de protection des données au spécifié 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

Paramètres

services
IServiceCollection

IServiceCollection auquel ajouter les services.

setupAction
Action<DataProtectionOptions>

Action<T> pour configurer le DataProtectionOptions fourni.

Retours

Référence à cette instance à la fin de l’opération.

S’applique à