Unfortunately, that is not supported out of the box.
One easy way to do this is to put those users in a specific group and then change the call to Membership.GetAllUsers()
to
Roles.GetUsersInRole(roleName)
That gives you a list of the users in the specified role.
Otherwise, you need to create a custom method that returns a MembershipCollection. Inside this method you could fire a custom stored procedure that returns the users based on your criteria. You can take a look at the standard stored procedures and at
the code for the standard SQL providers for some ideas on how to do this.
Cheers,
Imar
---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of
ASP.NET 2.0 Instant Results and
Beginning Dreamweaver MX / MX 2004
Want to be my colleague? Then check out this post.