Share via


IdentityBuilder.AddPersonalDataProtection<TProtector,TKeyRing> 方法

定義

public:
generic <typename TProtector, typename TKeyRing>
 where TProtector : class, Microsoft::AspNetCore::Identity::ILookupProtector where TKeyRing : class, Microsoft::AspNetCore::Identity::ILookupProtectorKeyRing virtual Microsoft::AspNetCore::Identity::IdentityBuilder ^ AddPersonalDataProtection();
public virtual Microsoft.AspNetCore.Identity.IdentityBuilder AddPersonalDataProtection<TProtector,TKeyRing> () where TProtector : class, Microsoft.AspNetCore.Identity.ILookupProtector where TKeyRing : class, Microsoft.AspNetCore.Identity.ILookupProtectorKeyRing;
abstract member AddPersonalDataProtection : unit -> Microsoft.AspNetCore.Identity.IdentityBuilder (requires 'Protector : null and 'Protector :> Microsoft.AspNetCore.Identity.ILookupProtector and 'KeyRing : null and 'KeyRing :> Microsoft.AspNetCore.Identity.ILookupProtectorKeyRing)
override this.AddPersonalDataProtection : unit -> Microsoft.AspNetCore.Identity.IdentityBuilder (requires 'Protector : null and 'Protector :> Microsoft.AspNetCore.Identity.ILookupProtector and 'KeyRing : null and 'KeyRing :> Microsoft.AspNetCore.Identity.ILookupProtectorKeyRing)
Public Overridable Function AddPersonalDataProtection(Of TProtector As {Class, ILookupProtector}, TKeyRing As {Class, ILookupProtector}) () As IdentityBuilder

類型參數

TProtector

個人資料保護裝置類型。

TKeyRing

個人資料保護裝置金鑰通道類型。

傳回

目前的 IdentityBuilder 執行個體。

適用於