Last post Jan 20, 2015 07:19 PM by oned_gk
Jan 20, 2015 07:05 PM|JORGEMAL|LINK
I need to use 2 different Membership providers in my web application so I have set both of them in the web.config file. I see that, to create a new user with this approach, I need to issue the following command in code:
Membership.Providers["nameOfProvider"].CreateUser(string UserName, string Password, string email, string passwordQuestion, string passwordAnswer, bool isApproved, object providerUserKey, out MembershipCreateStatus status);
What is the "providerUserKey" parameter? How do I get it "before" creating the user?
I found the information in the link below but I just do not get the idea.
Jan 20, 2015 07:19 PM|oned_gk|LINK
ProviderUserKey can be cast as a Guid, since the SqlMembershipProvider stores
the user identifier as aUniqueIdentifier.