Microsoft KB Archive/201029

{|
 * width="100%"|

PRB: Order of Columns In IDirectorySearch Results Not Guaranteed

 * }

Q201029

-

The information in this article applies to:


 * Microsoft Active Directory Service Interfaces, version 2.0

-

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 : kbADSI kbGrpDSPlatform

Issue type : kbprb

Technology : kbAudDeveloper kbADSISearch kbADSI200