SearchResultCollection Class
Contains the SearchResult instances that the Active Directory hierarchy returned during a DirectorySearcher query.
For a list of all members of this type, see SearchResultCollection Members.
System.Object
System.MarshalByRefObject
System.DirectoryServices.SearchResultCollection
[Visual Basic] Public Class SearchResultCollection Inherits MarshalByRefObject Implements ICollection, IEnumerable, IDisposable [C#] public class SearchResultCollection : MarshalByRefObject, ICollection, IEnumerable, IDisposable [C++] public __gc class SearchResultCollection : public MarshalByRefObject, ICollection, IEnumerable, IDisposable [JScript] public class SearchResultCollection extends MarshalByRefObject implements ICollection, IEnumerable, IDisposable
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Remarks
Each time you perform a query, DirectorySearcher creates a handle to the corresponding SearchResultCollection instance. This handle persists until you call Dispose or until garbage collection picks up the instance.
Requirements
Namespace: System.DirectoryServices
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family
Assembly: System.Directoryservices (in System.Directoryservices.dll)
See Also
SearchResultCollection Members | System.DirectoryServices Namespace | DirectoryEntry | DirectoryEntries | PropertyCollection | PropertyValueCollection | DirectorySearcher | Dispose | Handle | ReferralChasingOption | SearchResult | ResultPropertyCollection | ResultPropertyValueCollection | SearchScope | SortDirection | SortOption