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; }

参数

属性值

类型:T

异常

异常 条件
ArgumentOutOfRangeException

索引不在集合的有效索引时引发。

另请参阅

引用

OrderedCollectionBase<T> 类

OrderedCollectionBase<T> 成员

Microsoft.Office.Server.Search.Query.Rules 命名空间