共用方式為


UserClaimsPrincipalFactory<TUser> 建構函式

定義

初始化 UserClaimsPrincipalFactory<TUser> 類別的新執行個體。

public:
 UserClaimsPrincipalFactory(Microsoft::AspNetCore::Identity::UserManager<TUser> ^ userManager, Microsoft::Extensions::Options::IOptions<Microsoft::AspNetCore::Identity::IdentityOptions ^> ^ optionsAccessor);
public UserClaimsPrincipalFactory (Microsoft.AspNetCore.Identity.UserManager<TUser> userManager, Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Identity.IdentityOptions> optionsAccessor);
new Microsoft.AspNetCore.Identity.UserClaimsPrincipalFactory<'User (requires 'User : null)> : Microsoft.AspNetCore.Identity.UserManager<'User (requires 'User : null)> * Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Identity.IdentityOptions> -> Microsoft.AspNetCore.Identity.UserClaimsPrincipalFactory<'User (requires 'User : null)>
Public Sub New (userManager As UserManager(Of TUser), optionsAccessor As IOptions(Of IdentityOptions))

參數

userManager
UserManager<TUser>

UserManager<TUser> 從中擷取使用者資訊的 。

optionsAccessor
IOptions<IdentityOptions>

已設定的 IdentityOptions

適用於