SimpleMembershipProvider.CreateOrUpdateOAuthAccount Method

Definition

Creates a new OAuth membership account, or updates an existing OAuth Membership account.

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

Parameters

provider
String

The OAuth or OpenID provider.

providerUserId
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.

userName
String

The user name.

Exceptions

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

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