using System;
using System.DirectoryServices;
public class MainClass
{
public static int Main(string[] args)
{
DirectoryEntry MyObject = new DirectoryEntry();
MyObject.Path = "LDAP://HMSRevenge/OU=Users,DC=Test,DC=com";
foreach(string MyValue in MyObject.Properties["email"])
Console.WriteLine("Email" + " : " + MyValue);
return 0;
}
}