"Thomas" <an*******@discussions.microsoft.com> wrote in message
news:0b****************************@phx.gbl
I am trying to access the members of an Exchange 5.5
Distribution List. I can get a list of all the Distribution
Lists, but I cannot see how to get the members. Can someone
point me in the correct direction? Thanks.
using sds=System.DirectoryServices;
using debug=System.Diagnostics.Debug;
sds.DirectoryEntry mlist=new sds.DirectoryEntry(AdsPathToMailingList);
sds.PropertyValueCollection members=mlist.Properties["member"];
if (members!=null) {
foreach (string member in members)
debug.WriteLine(member);
}
--
C# newbie... posts are probably inaccurate, inelegant or both