displaying proxyAddresses attribute on a AD account
-
DirectoryEntry employee = result.GetDirectoryEntry(); string ea = employee.Properties["proxyAddresses"].Value.ToString(); MessageBox.Show(ea.ToString()); Hi All, i'm using the above code to try and extract the email address of a user account. if i swap proxyAddresses for 'description' or 'employeeID' etc it works fine. but when i use proxyAddresses it errors! i have tried creating ea as a string array and it still fails!! any ideas? many thanks, Phil
-
DirectoryEntry employee = result.GetDirectoryEntry(); string ea = employee.Properties["proxyAddresses"].Value.ToString(); MessageBox.Show(ea.ToString()); Hi All, i'm using the above code to try and extract the email address of a user account. if i swap proxyAddresses for 'description' or 'employeeID' etc it works fine. but when i use proxyAddresses it errors! i have tried creating ea as a string array and it still fails!! any ideas? many thanks, Phil
Hi Phil, Please go through give below site. If still you are facing problem then please let me know. http://geekswithblogs.net/mhamilton/archive/2005/12/18/63468.aspx[^]
Parwej Ahamad g.parwez@gmail.com