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

適用於