Invoking ADSI

ADSI interfaces expose properties, such as the IADsUser interface properties LastName and Firstname, and methods, such as SetPassword. For more information about the IADsUser interface and its properties and methods, see the IADsUser interface, LastName property, FirstName property and SetPassword method in the MSDN Library at https://go.microsoft.com/fwlink/?LinkID=27252.

The System.DirectoryServices namespace does not contain wrapper methods and properties for all methods and properties that are defined by ADSI interfaces. To access ADSI methods that do not have corresponding wrapper methods in the System.DirectoryServices namespace, use the Invoke method. For properties, use the InvokeMember method. This section provides code examples for using both options.

This section includes the following topics:

See Also

Reference

System.DirectoryServices
DirectoryEntry
Type

Concepts

Advanced Programming Topics

Send comments about this topic to Microsoft.

Copyright © 2007 by Microsoft Corporation. All rights reserved.