DirectorySearcher.Asynchronous Property
.NET Framework 2.0
Gets or sets a value that indicates if the search is performed asynchronously.
Namespace: System.DirectoryServices
Assembly: System.DirectoryServices (in system.directoryservices.dll)
Assembly: System.DirectoryServices (in system.directoryservices.dll)
The following C# example shows how to create an asynchronous search.
using System.DirectoryServices; ... // Bind to the users container. DirectoryEntry entry = new DirectoryEntry("LDAP://CN=users,DC=fabrikam,DC=com"); // Create a DirectorySearcher object. DirectorySearcher mySearcher = new DirectorySearcher(entry); //Set the Asynchronous property to true. src.Asynchronous = true; //Use the FindAll method to get search results. SearchResultCollection res = src.FindAll();
Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.