UserStore<TUser,TRole,TContext,TKey>.CreateUserToken 方法

定义

调用以创建 的新 IdentityUserToken<TKey>实例。

protected:
 override Microsoft::AspNetCore::Identity::EntityFrameworkCore::IdentityUserToken<TKey> ^ CreateUserToken(TUser user, System::String ^ loginProvider, System::String ^ name, System::String ^ value);
protected override Microsoft.AspNetCore.Identity.EntityFrameworkCore.IdentityUserToken<TKey> CreateUserToken (TUser user, string loginProvider, string name, string value);
override this.CreateUserToken : 'User * string * string * string -> Microsoft.AspNetCore.Identity.EntityFrameworkCore.IdentityUserToken<'Key (requires 'Key :> IEquatable<'Key>)>
Protected Overrides Function CreateUserToken (user As TUser, loginProvider As String, name As String, value As String) As IdentityUserToken(Of TKey)

参数

user
TUser

关联的用户。

loginProvider
String

关联的登录提供程序。

name
String

用户令牌的名称。

value
String

用户令牌的值。

返回

适用于