語言

SearchResultCollection.Item[Int32] 屬性

定義

取得 SearchResult 此集合中位於指定索引的物件。

public:
 property System::DirectoryServices::SearchResult ^ default[int] { System::DirectoryServices::SearchResult ^ get(int index); };
public System.DirectoryServices.SearchResult this[int index] { get; }
member this.Item(int) : System.DirectoryServices.SearchResult
Default Public ReadOnly Property Item(index As Integer) As SearchResult

參數

index
Int32

要檢索物件的 SearchResult 零為基礎索引。

屬性值

位於 SearchResult 指定索引的物件。

備註

在 C# 中,這個屬性就是類別的 SearchResultCollection 索引器。

在 JScript 中,你可以使用類型定義的預設索引屬性,但無法明確定義自己的屬性。 然而,在類別上指定 expando 屬性會自動提供一個預設的索引屬性,其型別為 Object,索引型別為 String。

適用於