MembershipUserInfoProviderAddMembershipToUser Method (Int32, Int32, DateTime) |
Sets relationship between specified membership and user.
Namespace: CMS.MembershipAssembly: CMS.Membership (in CMS.Membership.dll) Version: 8.2.23
Syntax public static void AddMembershipToUser(
int membershipId,
int userId,
DateTime validTo
)
Parameters
- membershipId
- Type: SystemInt32
Membership ID - userId
- Type: SystemInt32
User ID - validTo
- Type: SystemDateTime
Date to membership for user is valid
See Also