IdentityBuilder.AddTokenProvider 方法

定义

重载

AddTokenProvider(String, Type)

UserType添加令牌提供程序。

AddTokenProvider<TProvider>(String)

添加令牌提供程序。

AddTokenProvider(String, Type)

Source:
IdentityBuilder.cs
Source:
IdentityBuilder.cs
Source:
IdentityBuilder.cs
Source:
IdentityBuilder.cs
Source:
IdentityBuilder.cs
Source:
IdentityBuilder.cs
Source:
IdentityBuilder.cs
Source:
IdentityBuilder.cs
Source:
IdentityBuilder.cs

UserType添加令牌提供程序。

public:
 virtual Microsoft::AspNetCore::Identity::IdentityBuilder ^ AddTokenProvider(System::String ^ providerName, Type ^ provider);
public virtual Microsoft.AspNetCore.Identity.IdentityBuilder AddTokenProvider (string providerName, Type provider);
abstract member AddTokenProvider : string * Type -> Microsoft.AspNetCore.Identity.IdentityBuilder
override this.AddTokenProvider : string * Type -> Microsoft.AspNetCore.Identity.IdentityBuilder
Public Overridable Function AddTokenProvider (providerName As String, provider As Type) As IdentityBuilder

参数

providerName
String

要添加的提供程序的名称。

provider
Type

要添加的 的类型 IUserTwoFactorTokenProvider<TUser>

返回

当前的 IdentityBuilder 实例。

适用于

AddTokenProvider<TProvider>(String)

Source:
IdentityBuilder.cs
Source:
IdentityBuilder.cs
Source:
IdentityBuilder.cs
Source:
IdentityBuilder.cs
Source:
IdentityBuilder.cs
Source:
IdentityBuilder.cs
Source:
IdentityBuilder.cs
Source:
IdentityBuilder.cs
Source:
IdentityBuilder.cs

添加令牌提供程序。

public:
generic <typename TProvider>
 where TProvider : class virtual Microsoft::AspNetCore::Identity::IdentityBuilder ^ AddTokenProvider(System::String ^ providerName);
public virtual Microsoft.AspNetCore.Identity.IdentityBuilder AddTokenProvider<TProvider> (string providerName) where TProvider : class;
abstract member AddTokenProvider : string -> Microsoft.AspNetCore.Identity.IdentityBuilder (requires 'Provider : null)
override this.AddTokenProvider : string -> Microsoft.AspNetCore.Identity.IdentityBuilder (requires 'Provider : null)
Public Overridable Function AddTokenProvider(Of TProvider As Class) (providerName As String) As IdentityBuilder

类型参数

TProvider

要添加的令牌提供程序的类型。

参数

providerName
String

要添加的提供程序的名称。

返回

当前的 IdentityBuilder 实例。

适用于