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
- providerName
Type: System.String
The provider name.
- providerUserId
Type: System.String
The user ID for the specified provider.
- userName
Type: System.String
The name of the user.
Remarks
For an example of using the OAuthWebSecurity class, see Using OAuth Providers with MVC 4.