PRB: Order of Columns In IDirectorySearch Results Not GuaranteedID: Q201029
|
The rows of results returned by IDirectorySearch::ExecuteSearch may not match the order of the properties specified by the caller.
This behavior is by design.
When using the IDirectorySearch interface to search a directory service, the ExecuteSearch method is used to submit the query. The caller provides an array of properties for which they want information returned. The order of the properties in the attribute array does not guarantee the order of the columns in the results of the search.
When examining the results of the query, the attribute name and attribute type of the columns should be used by programs to determine the contents of the row. The name and type can be found in the ADS_SEARCH_COLUMN data structure that is returned by the IDirectorySearch::GetColumn call.
Additional query words: kbDSupport
Keywords : kbADSI kbGrpPlatform
Version : winnt:2.0
Platform : winnt
Issue type : kbprb
Last Reviewed: April 15, 1999