次の方法で共有


IdentityBuilder.AddClaimsPrincipalFactory<TFactory> メソッド

定義

の を IUserClaimsPrincipalFactory<TUser> 追加します UserType

public virtual Microsoft.AspNetCore.Identity.IdentityBuilder AddClaimsPrincipalFactory<T> () where T : class;
public virtual Microsoft.AspNetCore.Identity.IdentityBuilder AddClaimsPrincipalFactory<TUser> () where TUser : class;
public virtual Microsoft.AspNetCore.Identity.IdentityBuilder AddClaimsPrincipalFactory<TFactory> () where TFactory : class;
abstract member AddClaimsPrincipalFactory : unit -> Microsoft.AspNetCore.Identity.IdentityBuilder (requires 'T : null)
override this.AddClaimsPrincipalFactory : unit -> Microsoft.AspNetCore.Identity.IdentityBuilder (requires 'T : null)
abstract member AddClaimsPrincipalFactory : unit -> Microsoft.AspNetCore.Identity.IdentityBuilder (requires 'User : null)
override this.AddClaimsPrincipalFactory : unit -> Microsoft.AspNetCore.Identity.IdentityBuilder (requires 'User : null)
abstract member AddClaimsPrincipalFactory : unit -> Microsoft.AspNetCore.Identity.IdentityBuilder (requires 'Factory : null)
override this.AddClaimsPrincipalFactory : unit -> Microsoft.AspNetCore.Identity.IdentityBuilder (requires 'Factory : null)
Public Overridable Function AddClaimsPrincipalFactory(Of T As Class) () As IdentityBuilder
Public Overridable Function AddClaimsPrincipalFactory(Of TUser As Class) () As IdentityBuilder
Public Overridable Function AddClaimsPrincipalFactory(Of TFactory As Class) () As IdentityBuilder

型パラメーター

T TUser TFactory

クレーム プリンシパル ファクトリの種類。

戻り値

現在の IdentityBuilder インスタンス。

適用対象