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)

public:
virtual void CreateOrUpdateOAuthAccount(
	String^ provider, 
	String^ providerUserId, 
	String^ userName
) override

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