SimpleMembershipProvider.DeleteOAuthAccount(String, String) SimpleMembershipProvider.DeleteOAuthAccount(String, String) SimpleMembershipProvider.DeleteOAuthAccount(String, String) Method

Definition

Deletes the OAuth or OpenID account with the specified provider name and provider user ID.

public override void DeleteOAuthAccount (string provider, string providerUserId);
override this.DeleteOAuthAccount : string * string -> unit
Public Overrides Sub DeleteOAuthAccount (provider As String, providerUserId As String)
Parameters
provider
String String String

The name of the OAuth or OpenID provider.

providerUserId
String String String

The OAuth or OpenID provider user ID. This is not the user ID of the user account, but the user ID on the OAuth or Open ID provider.

Exceptions

username is empty.-or-A user record that corresponds to username does not exist in the UserTableName table (the user profile table).-or-The database operation failed.

Applies to