LDAP Asynchronous Operations Technology Sample
This sample demonstrates how to use anto do directory operations asynchronously. This sample is available only in Visual C#.
For information about using the samples, see the following topics:
To build the sample
Open a Command Prompt window and navigate to the AsyncSend\CS directory.
Type msbuild asyncsend.sln at the command line.
To run the sample
Navigate to the directory that contains the built executable file, using the command prompt.
Type asyncsend followed by its arguments and press Enter.
This sample has the following syntax:
asyncsend <ldapServer> <user> <pwd> <domain> <targetOU>
Your user name.
The Active Directory domain.
The target organizational unit (OU).
Here is an example:
AsyncSend.exe myDC1.testDom.fabrikam.com user1 secret@~1 testDom OU=samples,DC=testDom,DC=fabrikam,DC=com
This sample is a console application. You must start and run it in a Command Prompt window to view its output.
This sample defines the following methods.
Connects to the server using a LdapConnection.
Creates a specified number of objects to search.
Performs a notification search asynchronously.
Deletes search objects.