Export (0) Print
Expand All

SimpleMembershipProvider.CreateOrUpdateOAuthAccount Method

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

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

'Declaration
Public Overrides Sub CreateOrUpdateOAuthAccount ( _
	provider As String, _
	providerUserId As String, _
	userName As String _
)
'Usage
Dim instance As SimpleMembershipProvider 
Dim provider As String 
Dim providerUserId As String 
Dim userName As String

instance.CreateOrUpdateOAuthAccount(provider, _
	providerUserId, userName)

Parameters

provider
Type: System.String
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.
userName
Type: System.String
The user name.

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:
© 2014 Microsoft