S
Stephanie Stowe
Hi. I am trying to understand the weird System.DirectoryServices object
model. I have a DirectoryEntry object. I want to enumerate through the
PropertyCollection. So I looked at GetEnumerator. Lovely. My memory cannot
dredge up how to use an enumerator. I do not understand the documentation,
whcih does not contain little code snippets of examples like MSDN Oct 2001
for older technologies did. Can someone give me an enumerator basics 101
reference? I cannot find one.
DirectoryEntry test = new DirectoryEntry("IIS://" + serverName +
"/w3svc/1/root", serverName + "\\administrator", password,
AuthenticationTypes.Secure);
DirectoryEntry schema = test.SchemaEntry;
I want to loop through schema and look at all the property names and values.
Thanks
model. I have a DirectoryEntry object. I want to enumerate through the
PropertyCollection. So I looked at GetEnumerator. Lovely. My memory cannot
dredge up how to use an enumerator. I do not understand the documentation,
whcih does not contain little code snippets of examples like MSDN Oct 2001
for older technologies did. Can someone give me an enumerator basics 101
reference? I cannot find one.
DirectoryEntry test = new DirectoryEntry("IIS://" + serverName +
"/w3svc/1/root", serverName + "\\administrator", password,
AuthenticationTypes.Secure);
DirectoryEntry schema = test.SchemaEntry;
I want to loop through schema and look at all the property names and values.
Thanks