DirectoryVirtualListView returning random results RRS feed

  • Question

  • Hi Folks,

    I am writing a small app in C# .net 4.5 and making a call to DirectoryVirtualListView.  The issue that I am getting is that I need to return only the first 6 users whose name starts with 'fred'.   What I am getting back is six users whose name starts with pretty much anything.

    My DirectorySearcher is set to filter on "(objectClass=User)",

    My DirectoryVirtualListView object is set to with the sortOptions ascending and 'displayName'.  BeforeCount is 0, AfterCount is 5, and my target is set to 'fred'

    I am doing a FindAll() to get the result set (I get 6 results 0 to 5 inclusive). 

    I get 5 results back, but when I check the values, the display name is pretty much the first 5 entries that would have been returned if I had not use the DirectoryVirtualListView   (first name starts with a, second name starts with b, third name starts with c).

    My understanding is that it should filter the result set so that it only returns names beginning with whatever the target is set to.

    Anyone have any ideas?



    Friday, September 13, 2013 3:59 AM