SearchResultCollection

SearchResultCollection

本文介绍了关于System.DirectoryServices.SearchResultCollection类。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时删除!!

大家好。


根据MSDN,有任何构造函数

System.DirectoryServices.SearchResultCollection类。

如果我自己实现DirectorySearcher.FindAll()方法,那么我怎样才能获得
instanciate SearchResultCollection类。

更清楚,一个SearchResult对象被创建,在内部FindAll()

方法,然后如何将此对象放入SearchResultCollection

对象。有任何方法与输入操作有关。


和,SearchResultCollection有一个名为Handle的属性。意思是

DSA_SEARCH_HANDLE,它是什么?我不知道ADSI。


谢谢。

解决方案




首先,你为什么要这样做?目前

可用的FindAll()方法有什么问题?你想要完成什么?


其次,由于SearchResultCollection是一个没有公开构造函数的类,你不能自己实例化 - 你会

必须自己重新创建该集合类,并将这个

集合用于您自己的FindAll()调用。


Marc

============================================= ===== ==============

Marc Scheuner可能会和你在一起!

Bern,Switzerland m.scheuner (at)inova.ch






你不能 - 期间。有* NO *公开可见的构造函数,所以你

无法实例化SearchResultCollection。


Marc

===== ============================================= ===== =========

Marc Scheuner可能会和你在一起!

伯尔尼,瑞士m.scheuner(at)inova.ch

Hello, everyone.

according to MSDN, there is any constructor of
System.DirectoryServices.SearchResultCollection Class.
if I implement DirectorySearcher.FindAll() method by myself, then how can I
instanciate SearchResultCollection Class.
more clearly, a SearchResult object is created, at the inside of FindAll()
method, then how can I put this object into the SearchResultCollection
object. there is any method releated to input operation.

and, SearchResultCollection has a property named "Handle" meaning
DSA_SEARCH_HANDLE, what is it? I have no idea about ADSI.

thanks.

解决方案



First of all, why would you want to? What''s wrong with the currently
available FindAll() method? What are you trying to accomplish?

Secondly, since SearchResultCollection is a class without publicly
available constructor, you CANNOT instantiate it yourself - you would
have to re-create that collection class yourself and use that
collection for your own FindAll() call.

Marc
================================================== ==============
Marc Scheuner May The Source Be With You!
Bern, Switzerland m.scheuner(at)inova.ch





You CAN''T - period. There is *NO* publicly visible constructor, so YOU
CANNOT instantiate a SearchResultCollection.

Marc
================================================== ==============
Marc Scheuner May The Source Be With You!
Bern, Switzerland m.scheuner(at)inova.ch


这篇关于关于System.DirectoryServices.SearchResultCollection类。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

1403页,肝出来的..

09-08 00:29