Sets the social identity ID for a particular user and provider name.
Namespace: MonoSoftware.MonoX.BusinessLayerAssembly: MonoX (in MonoX.dll) Version: 5.1.40.5065 (5.1.40.5065)
Syntax
C# |
---|
public virtual bool SetSocialIdentity(
Guid userId,
string providerName,
string providerUserId,
bool forceUpdate = true
) |
Visual Basic |
---|
Public Overridable Function SetSocialIdentity (
userId As Guid,
providerName As String,
providerUserId As String,
Optional forceUpdate As Boolean = true
) As Boolean |
Visual C++ |
---|
public:
virtual 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
override 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:
BooleanTrue if the operationw as sucessful, false otherwise.
Implements
IUserBLL..::..SetSocialIdentity(Guid, String, String, Boolean)See Also