Export (0) Print
Expand All

SimpleMembershipProvider.DeleteOAuthAccount Method

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

Namespace:  WebMatrix.WebData
Assembly:  WebMatrix.WebData (in WebMatrix.WebData.dll)

public override void DeleteOAuthAccount(
	string provider,
	string providerUserId
)

Parameters

provider
Type: System.String
The name of the OAuth or OpenID provider.
providerUserId
Type: System.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.

ExceptionCondition
InvalidOperationException

The SimpleMembershipProvider class was not initialized using a call to the InitializeDatabaseConnection() method.

MembershipCreateUserException

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.

Show:
© 2015 Microsoft