OrderedCollectionBase<T>.Item 属性
获取集合中的位置的项。位置是从零开始。
命名空间: Microsoft.Office.Server.Search.Query.Rules
程序集: Microsoft.Office.Server.Search(位于 Microsoft.Office.Server.Search.dll 中)
语法
声明
Public ReadOnly Default Property Item ( _
index As Integer _
) As T
Get
用法
Dim instance As OrderedCollectionBase
Dim index As Integer
Dim value As T
value = instance(index)
public T this[
int index
] { get; }
参数
- index
类型:System.Int32
属性值
类型:T
异常
异常 | 条件 |
---|---|
ArgumentOutOfRangeException | 索引不在集合的有效索引时引发。 |