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)

abstract GetUserIdFromOAuth : 
        provider:string * 
        providerUserId:string -> int  
override 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

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

Show:
© 2014 Microsoft