G
Guest
Hi
I had a small doubt about the working of DirectoryEntry.
I create a DirectorySearcher and search for a particular user on my domain
using
ds.Filter = "sAMAccountName="+username;
Then using SearchResult.GetDirectoryEntry() I get a DirectoryEntry object
representing the user, say de.
The question is:
Does the DirectoryEntry.Properties collection prefetch the
properties/attributes of the user, that are defined at Active Directory.
or is it that when I use de.Properties["xyz"], the value is queried against
Active Directory resulting in a network call.
I think it does prefetch since while debugging I can see the property count
as 35, but I want to be sure.
In addition, how is this related to caching of the attribute values,
specifically, the RefreshCache etc. methods.
Thanks in advance
Vikas Manghani
I had a small doubt about the working of DirectoryEntry.
I create a DirectorySearcher and search for a particular user on my domain
using
ds.Filter = "sAMAccountName="+username;
Then using SearchResult.GetDirectoryEntry() I get a DirectoryEntry object
representing the user, say de.
The question is:
Does the DirectoryEntry.Properties collection prefetch the
properties/attributes of the user, that are defined at Active Directory.
or is it that when I use de.Properties["xyz"], the value is queried against
Active Directory resulting in a network call.
I think it does prefetch since while debugging I can see the property count
as 35, but I want to be sure.
In addition, how is this related to caching of the attribute values,
specifically, the RefreshCache etc. methods.
Thanks in advance
Vikas Manghani