UserStoreBase<TUser,TKey,TUserClaim,TUserLogin,TUserToken>.SetSecurityStampAsync 方法

定义

为指定的 user设置提供的安全性stamp

public virtual System.Threading.Tasks.Task SetSecurityStampAsync (TUser user, string stamp, System.Threading.CancellationToken cancellationToken = default);
abstract member SetSecurityStampAsync : 'User * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.SetSecurityStampAsync : 'User * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Overridable Function SetSecurityStampAsync (user As TUser, stamp As String, Optional cancellationToken As CancellationToken = Nothing) As Task

参数

user
TUser

应设置其安全标记的用户。

stamp
String

要设置的安全标记。

cancellationToken
CancellationToken

CancellationToken,用于传播应取消操作的通知。

返回

表示异步操作的 Task

实现

适用于