Edit

ResultPropertyCollection Class

Definition

Contains the properties of a SearchResult instance.

public ref class ResultPropertyCollection : System::Collections::DictionaryBase
public class ResultPropertyCollection : System.Collections.DictionaryBase
type ResultPropertyCollection = class
    inherit DictionaryBase
Public Class ResultPropertyCollection
Inherits DictionaryBase
Inheritance
ResultPropertyCollection

Remarks

SearchResult instances are similar to DirectoryEntry instances. The notable difference is that the DirectoryEntry retrieves its information from the Active Directory Domain Services hierarchy each time a new object is accessed, whereas the data for the SearchResult is already available in the SearchResultCollection that a DirectorySearcher query returns. If you try to get a SearchResult property that your query did not specify for retrieval, the property will not be available.

Properties

Name Description
Item[String]

Gets the property from this collection that has the specified name.

PropertyNames

Gets the names of the properties in this collection.

Values

Gets the values of the properties in this collection.

Methods

Name Description
Contains(String)

Determines whether the property that has the specified name belongs to this collection.

CopyTo(ResultPropertyValueCollection[], Int32)

Copies the properties from this collection to an array, starting at a particular index of the array.

Applies to

See also