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)
Syntax
'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)
public virtual int GetUserIdFromOAuth(
string provider,
string providerUserId
)
public:
virtual int GetUserIdFromOAuth(
String^ provider,
String^ providerUserId
)
abstract GetUserIdFromOAuth :
provider:string *
providerUserId:string -> int
override GetUserIdFromOAuth :
provider:string *
providerUserId:string -> int
public function GetUserIdFromOAuth(
provider : String,
providerUserId : String
) : int
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
Remarks
The user ID, or -1 if there is no user ID associated with the OAuth or Open ID provider user ID.