IUserLoginStore<TUser>.RemoveLoginAsync 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
尝试从指定的 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。