Share via


OAuthWebSecurity.CreateOrUpdateAccount Method

Creates or updates the account using the specified provider and user ID for the provider ID and associate the new account with the specified user name.

Namespace:  Microsoft.Web.WebPages.OAuth
Assembly:  Microsoft.Web.WebPages.OAuth (in Microsoft.Web.WebPages.OAuth.dll)

Syntax

'Declaration
Public Shared Sub CreateOrUpdateAccount ( _
    providerName As String, _
    providerUserId As String, _
    userName As String _
)
'Usage
Dim providerName As String 
Dim providerUserId As String 
Dim userName As String 

OAuthWebSecurity.CreateOrUpdateAccount(providerName, _
    providerUserId, userName)
public static void CreateOrUpdateAccount(
    string providerName,
    string providerUserId,
    string userName
)
public:
static void CreateOrUpdateAccount(
    String^ providerName, 
    String^ providerUserId, 
    String^ userName
)
static member CreateOrUpdateAccount : 
        providerName:string * 
        providerUserId:string * 
        userName:string -> unit
public static function CreateOrUpdateAccount(
    providerName : String, 
    providerUserId : String, 
    userName : String
)

Parameters

  • providerUserId
    Type: System.String
    The user ID for the specified provider.

Remarks

For an example of using the OAuthWebSecurity class, see Using OAuth Providers with MVC 4.

See Also

Reference

OAuthWebSecurity Class

Microsoft.Web.WebPages.OAuth Namespace