共用方式為


IUserSecurityStampStore<TUser>.SetSecurityStampAsync 方法

定義

設定指定 user 之 所提供的安全性 stamp

public:
 System::Threading::Tasks::Task ^ SetSecurityStampAsync(TUser user, System::String ^ stamp, System::Threading::CancellationToken cancellationToken);
public System.Threading.Tasks.Task SetSecurityStampAsync (TUser user, string stamp, System.Threading.CancellationToken cancellationToken);
abstract member SetSecurityStampAsync : 'User * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function SetSecurityStampAsync (user As TUser, stamp As String, cancellationToken As CancellationToken) As Task

參數

user
TUser

應設定其安全性戳記的使用者。

stamp
String

要設定的安全性戳記。

cancellationToken
CancellationToken

用於散佈應取消作業通知的 CancellationToken

傳回

表示非同步作業的 Task

適用於