I am preforming a long search in active directory and would really like to user the DirectorySearcher.Asynchronous = True. Microsoft provides very little documentation on MSDN
An asynchronous search can show results as they are found while simultaneously searching for additional results. This is useful for tasks such as populating list boxes.
The default setting for this property is false.
How is my application to know when the search is done. I don't see any properties, events or callbacks that would provide this notification. Does anyone have any Idea how to get this functionality?
Basically I am looking for this:
- Start Async Directory Search
- Return Results to a System.Collections.Concurrent.ConcurrentQueue(Of Object)
- As DirectorySearcher is running I can process Items added to the Queue
Thanks so much for your help.