This documentation is archived and is not being maintained.

SearchResultCollection Methods

The methods of the SearchResultCollection class are listed here. For a complete list of SearchResultCollection class members, see the SearchResultCollection Members topic.

Public Methods

public methodContains Determines if a specified SearchResult object is in this collection.
public methodCopyTo Copies the SearchResult objects from this collection to an array, starting at a particular index of the array.
public methodCreateObjRef (inherited from MarshalByRefObject) Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.
public methodDispose Overloaded. Releases the resources used by the SearchResultCollection.
public methodEquals (inherited from Object) Overloaded. Determines whether two Object instances are equal.
public methodGetEnumerator Returns an enumerator that you can use to iterate through this collection.
public methodGetHashCode (inherited from Object) Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
public methodGetLifetimeService (inherited from MarshalByRefObject) Retrieves the current lifetime service object that controls the lifetime policy for this instance.
public methodGetType (inherited from Object) Gets the Type of the current instance.
public methodIndexOf Retrieves the index of a specified SearchResult object in this collection.
public methodInitializeLifetimeService (inherited from MarshalByRefObject) Obtains a lifetime service object to control the lifetime policy for this instance.
public methodToString (inherited from Object) Returns a String that represents the current Object.

Protected Methods

protected methodDispose Overloaded. Releases the resources used by the SearchResultCollection.
protected methodFinalize Overridden. See Object.Finalize.

In C# and C++, finalizers are expressed using destructor syntax.

protected methodMemberwiseClone (inherited from Object) Creates a shallow copy of the current Object.

See Also

SearchResultCollection Class | System.DirectoryServices Namespace