DataProtectionServiceCollectionExtensions.AddDataProtection Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
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)
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>)
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 à
Commentaires
https://aka.ms/ContentUserFeedback.
Bientôt disponible : Tout au long de 2024, nous allons supprimer progressivement GitHub Issues comme mécanisme de commentaires pour le contenu et le remplacer par un nouveau système de commentaires. Pour plus d’informations, consultezEnvoyer et afficher des commentaires pour