PRB: Order of Columns In IDirectorySearch Results Not Guaranteed
Article ID: 201029
Article Last Modified on 3/20/2004
APPLIES TO
- Microsoft Active Directory Service Interfaces 2.0
This article was previously published under Q201029
SYMPTOMS
The rows of results returned by IDirectorySearch::ExecuteSearch may not match the order of the properties specified by the caller.
STATUS
This behavior is by design.
MORE INFORMATION
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: kbprb kbdswmanage2003swept KB201029