SimpleMembershipProvider.CreateOrUpdateOAuthAccount(String, String, String) SimpleMembershipProvider.CreateOrUpdateOAuthAccount(String, String, String) SimpleMembershipProvider.CreateOrUpdateOAuthAccount(String, String, String) 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 String String

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.

userName
String String String

The user name.

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