Click or drag to resize
MembershipUserInfoProviderSetMembershipUserInfo Method

Note: This API is now obsolete.

Sets relationship between specified membership and User.

Namespace: CMS.Membership
Assembly: CMS.Membership (in CMS.Membership.dll) Version: 13.0.131
Syntax
C#
[ObsoleteAttribute("Use IMembershipUserInfoProvider.Set(MembershipUserInfo) instead. To get an instance of the interface's implementation, use dependency injection or access the instance directly - MembershipUserInfo.Provider.")]
public static void SetMembershipUserInfo(
	MembershipUserInfo infoObj
)

Parameters

infoObj
Type: CMS.MembershipMembershipUserInfo
Membership-User relationship to be set
Remarks
Calling this method does not invalidate the user whose membership binding is being set. Consider using AddMembershipToUser(Int32, Int32, DateTime, Boolean) or invalidating the UserInfo explicitly.
See Also