Writing COM Interop Types

Summary

We now have a complete understanding of how to read and write attribute values to and from the directory using any syntax or data type.

We began with a comparison of the collection classes used by both DirectoryEntry and DirectorySearcher for reading attribute values. We then explored the various types of LDAP data types and explained how they are converted to different types by different layers of the system. We also explained how the schema mapping mechanism performs mappings from LDAP data types to ADSI data types as well as the differences between how these types are marshaled by the DirectorySearcher and DirectoryEntry classes.

After that, we dove into the details of reading all of the different types of attribute values. We focused heavily on the more troublesome types, including LargeInteger and security descriptors.

We finished up by describing how to write attribute values and covered the troublesome types again from the writing perspective.

Категории