UserManager<TUser>.RemoveLoginAsync(TUser, String, String) Method

Definition

Attempts to remove the provided external login information from the specified user. and returns a flag indicating whether the removal succeed or not.

public:
 virtual System::Threading::Tasks::Task<Microsoft::AspNetCore::Identity::IdentityResult ^> ^ RemoveLoginAsync(TUser user, System::String ^ loginProvider, System::String ^ providerKey);
public virtual System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.IdentityResult> RemoveLoginAsync (TUser user, string loginProvider, string providerKey);
abstract member RemoveLoginAsync : 'User * string * string -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.IdentityResult>
override this.RemoveLoginAsync : 'User * string * string -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.IdentityResult>
Public Overridable Function RemoveLoginAsync (user As TUser, loginProvider As String, providerKey As String) As Task(Of IdentityResult)

Parameters

user
TUser

The user to remove the login information from.

loginProvider
String

The login provide whose information should be removed.

providerKey
String

The key given by the external login provider for the specified user.

Returns

The Task that represents the asynchronous operation, containing the IdentityResult of the operation.

Applies to