UserStore<TUser,TRole,TContext,TKey,TUserClaim,TUserRole,TUserLogin,TUserToken>.SetTokenAsync 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
public:
virtual System::Threading::Tasks::Task ^ SetTokenAsync(TUser user, System::String ^ loginProvider, System::String ^ name, System::String ^ value, System::Threading::CancellationToken cancellationToken);
public virtual System.Threading.Tasks.Task SetTokenAsync (TUser user, string loginProvider, string name, string value, System.Threading.CancellationToken cancellationToken);
abstract member SetTokenAsync : 'User * string * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.SetTokenAsync : 'User * string * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Overridable Function SetTokenAsync (user As TUser, loginProvider As String, name As String, value As String, cancellationToken As CancellationToken) As Task
参数
- user
- TUser
- loginProvider
- String
- name
- String
- value
- String
- cancellationToken
- CancellationToken