Sets the social identity ID for a particular user and provider name.

Namespace: MonoSoftware.MonoX.Repositories
Assembly: MonoX (in MonoX.dll) Version: 5.1.40.5065 (5.1.40.5065)

Syntax

C#
bool SetSocialIdentity(
	Guid userId,
	string providerName,
	string providerUserId,
	bool forceUpdate = true
)
Visual Basic
Function SetSocialIdentity ( 
	userId As Guid,
	providerName As String,
	providerUserId As String,
	Optional forceUpdate As Boolean = true
) As Boolean
Visual C++
bool SetSocialIdentity(
	Guid userId, 
	String^ providerName, 
	String^ providerUserId, 
	bool forceUpdate = true
)
F#
abstract SetSocialIdentity : 
        userId : Guid * 
        providerName : string * 
        providerUserId : string * 
        ?forceUpdate : bool 
(* Defaults:
        let _forceUpdate = defaultArg forceUpdate true
*)
-> bool 

Parameters

userId
Type: System..::..Guid
User ID.
providerName
Type: System..::..String
Provider name (Facebook, Google, ...) as used in SocialAuth.net.
providerUserId
Type: System..::..String
ID of the user at the designated provider.
forceUpdate (Optional)
Type: System..::..Boolean
Indicates if the social identity is overwritten with the new data even if it already exists.

Return Value

Type: Boolean
True if the operationw as sucessful, false otherwise.

See Also