IdentityBuilder.AddTokenProvider 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
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 实例。