Export (0) Print
Expand All

SearchResultCollection.Item Property

Gets the SearchResult object that is located at a specified index in this collection.

[C#] In C#, this property is the indexer for the SearchResultCollection class.

[Visual Basic]
Public Default ReadOnly Property Item( _
   ByVal index As Integer _
) As SearchResult
[C#]
public SearchResult this[
 int index
] {get;}
[C++]
public: __property SearchResult* get_Item(
 int index
);
[JScript]
returnValue = SearchResultCollectionObject.Item(index);
-or-
returnValue = SearchResultCollectionObject(index);

[JScript] In JScript, you can use the default indexed properties defined by a type, but you cannot explicitly define your own. However, specifying the expando attribute on a class automatically provides a default indexed property whose type is Object and whose index type is String.

Arguments [JScript]

index
The zero-based index of the SearchResult object to retrieve.

Parameters [Visual Basic, C#, C++]

index
The zero-based index of the SearchResult object to retrieve.

Property Value

The SearchResult object that is located at the specified index.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

.NET Framework Security: 

See Also

SearchResultCollection Class | SearchResultCollection Members | System.DirectoryServices Namespace

Show:
© 2015 Microsoft