How can I list available ADSI (Active Directory Service Interfaces) service providers in C#?
views:
34answers:
1
A:
I have found that:
foreach (object obj in (IEnumerable)Marshal.BindToMoniker("ADs:"))
{
obj.GetType().InvokeMember("Name", BindingFlags.DeclaredOnly |
BindingFlags.Public | BindingFlags.NonPublic |
BindingFlags.Instance |
BindingFlags.GetProperty, null, obj, null).Dump();
}
TN
2010-08-06 23:36:43