IUserLoginStore<TUser>.RemoveLoginAsync 方法

定义

尝试从指定的 user中删除提供的登录信息。 和 返回一个标志,指示删除是否成功。

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

参数

user
TUser

要从中删除登录信息的用户。

loginProvider
String

应删除其信息的登录名。

providerKey
String

外部登录提供程序为指定用户提供的密钥。

cancellationToken
CancellationToken

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

返回

表示异步操作的 Task

适用于