I am doing a preliminary long search in the active directory and would really like to use the DirectorySearcher.Asynchronous = True function. Microsoft provides very little MSDN documentation
Asynchronous search can show results as they are found while simultaneously searching for additional results. This is useful for filling out lists.
By default, this property is set to false.
How my application will know when the search is complete. I do not see any properties, events or callbacks that would provide this notification. Does anyone have an idea how to get this functionality?
I am mainly looking for:
- Starting a search in Async Directory
- Returns results in System.Collections.Concurrent.ConcurrentQueue (Of Object)
- How DirectorySearcher Works, I Can Handle Items Added To The Queue
Many thanks for your help.
Dakota k
source share