共用方式為


ReadOnlyList<T>.Item 屬性

Gets the element at the specified index.

命名空間:  Microsoft.SqlServer.Management.Sdk.Sfc
組件:  Microsoft.SqlServer.Management.Sdk.Sfc (在 Microsoft.SqlServer.Management.Sdk.Sfc.dll 中)

語法

'宣告
Public ReadOnly Default Property Item ( _
    index As Integer _
) As T
    Get
'用途
Dim instance As ReadOnlyList 
Dim index As Integer 
Dim value As T

value = instance(index)
public T this[
    int index
] { get; }
public:
virtual property T default[int index] {
    T get (int index) sealed;
}
abstract Item : 'T
override Item : 'T
JScript 支援索引屬性的使用,但不支援新屬性的宣告。

參數

  • index
    型別:System.Int32
    The zero-based index of the element to get.

屬性值

型別:T
The element at the specified index.

實作

IReadOnlyList<T>.Item[Int32]

請參閱

參考

ReadOnlyList<T> 結構

Microsoft.SqlServer.Management.Sdk.Sfc 命名空間