Export (0) Print
Expand All

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)

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

returnValue = instance.GetUserIdFromOAuth(provider, _
	providerUserId)

Parameters

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

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.

Show:
© 2015 Microsoft