ProfileInfoCollection pic =
ProfileManager.GetAllProfiles(ProfileAuthenticationOption.All);
foreach(ProfileInfo pi in pic) {
ProfileCommon p =
(ProfileCommon)ProfileCommon.Create(pi.UserName);
System.Diagnostics.Debug.WriteLine(p.Name.Caption);
}
Apologies for the copy/paste mistake. I meant using Profile.GetProfile()
along with ProfileInfo.UserName. You might also want to use
ProfileManager.GetAllProfiles() for any filtering.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.