SimpleMembershipProvider.CreateOrUpdateOAuthAccount Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for