Click or drag to resize
MembershipUserInfoProviderRemoveMembershipFromUser Method

Note: This API is now obsolete.

Deletes 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.Remove(int, int) instead. To get an instance of the interface's implementation, use dependency injection or access the instance directly - MembershipUserInfo.Provider.")]
public static void RemoveMembershipFromUser(
	int membershipId,
	int userId
)

Parameters

membershipId
Type: SystemInt32
Membership ID
userId
Type: SystemInt32
User ID
Remarks
Invalidates the UserInfo object of the user whose membership is being modified.
See Also