GetUserIdFromOAuth Method

ExtendedMembershipProvider.GetUserIdFromOAuth Method

When overridden in a derived class, returns the user ID for the specified OAuth or OpenID provider and provider user ID.

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

Public Overridable Function GetUserIdFromOAuth ( _
	provider As String, _
	providerUserId As String _
) As Integer
Dim instance As ExtendedMembershipProvider 
Dim provider As String 
Dim providerUserId As String 
Dim returnValue As Integer 

returnValue = instance.GetUserIdFromOAuth(provider, _


Type: System.String
The name of the OAuth or OpenID provider.
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.

Return Value

Type: System.Int32

The user ID, or -1 if there is no user ID associated with the OAuth or Open ID provider user ID.

© 2016 Microsoft