By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
458,224 Members | 1,233 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 458,224 IT Pros & Developers. It's quick & easy.

Iterating profiles

P: n/a
Hi,

is there any solution to iterate through all user profiles?

Thanks in advance,
Etam.

May 2 '07 #1
Share this Question
Share on Google+
7 Replies


P: n/a
ProfileManager.GetAllProfiles()

"etam" wrote:
Hi,

is there any solution to iterate through all user profiles?

Thanks in advance,
Etam.

May 2 '07 #2

P: n/a
On 2 Maj, 12:37, Siva M <shiva...@online.excite.comwrote:
ProfileManager.GetAllProfiles()
But this gives me only ProfileInfos :/.
May 2 '07 #3

P: n/a
On 2 Maj, 12:41, etam <odwrot...@gmail.comwrote:
On 2 Maj, 12:37, Siva M <shiva...@online.excite.comwrote:
ProfileManager.GetAllProfiles()

But this gives me only ProfileInfos :/.
And i need access to this profiles members.

May 2 '07 #4

P: n/a
Use ProfileInfo.UserName in conjunction with
ProfileManager.FindProfilesByUserName() to get the full profile object.

"etam" wrote:
On 2 Maj, 12:37, Siva M <shiva...@online.excite.comwrote:
ProfileManager.GetAllProfiles()

But this gives me only ProfileInfos :/.
May 2 '07 #5

P: n/a
On 2 Maj, 13:00, Siva M <shiva...@online.excite.comwrote:
Use ProfileInfo.UserName in conjunction with
ProfileManager.FindProfilesByUserName() to get the full profile object.
Is this a good solution:

ProfileInfoCollection pic =
ProfileManager.GetAllProfiles(ProfileAuthenticatio nOption.All);
foreach(ProfileInfo pi in pic) {
ProfileCommon p =
(ProfileCommon)ProfileCommon.Create(pi.UserName);
System.Diagnostics.Debug.WriteLine(p.Name.Caption) ;
}

?

May 2 '07 #6

P: n/a
On 2 Maj, 13:00, Siva M <shiva...@online.excite.comwrote:
Use ProfileInfo.UserName in conjunction with
ProfileManager.FindProfilesByUserName() to get the full profile object.
ProfileManager.FindProfilesByUserName() also gives
ProfileInfosCollection.

May 2 '07 #7

P: n/a
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.

"etam" wrote:
On 2 Maj, 13:00, Siva M <shiva...@online.excite.comwrote:
Use ProfileInfo.UserName in conjunction with
ProfileManager.FindProfilesByUserName() to get the full profile object.

ProfileManager.FindProfilesByUserName() also gives
ProfileInfosCollection.

May 3 '07 #8

This discussion thread is closed

Replies have been disabled for this discussion.