Интерфейс IReadOnlyList<T>
Defines properties and methods for the generic immutable list of objects that can be accessed by index.
Пространство имен: Microsoft.SqlServer.Management.Sdk.Sfc
Сборка: Microsoft.SqlServer.Management.Sdk.Sfc (в Microsoft.SqlServer.Management.Sdk.Sfc.dll)
Синтаксис
'Декларация
Public Interface IReadOnlyList(Of T) _
Inherits IReadOnlyCollection(Of T), IReadOnlyCollection, IEnumerable(Of T), _
IEnumerable
'Применение
Dim instance As IReadOnlyList(Of T)
public interface IReadOnlyList<T> : IReadOnlyCollection<T>,
IReadOnlyCollection, IEnumerable<T>, IEnumerable
generic<typename T>
public interface class IReadOnlyList : IReadOnlyCollection<T>,
IReadOnlyCollection, IEnumerable<T>, IEnumerable
type IReadOnlyList<'T> =
interface
interface IReadOnlyCollection<'T>
interface IReadOnlyCollection
interface IEnumerable<'T>
interface IEnumerable
end
JScript не поддерживает стандартные типы и методы.
Параметры типа
- T
The type of the elements in the list.
Тип IReadOnlyList<T> обеспечивает доступ к следующим элементам.
Свойства
Имя | Описание | |
---|---|---|
![]() |
Count | Gets the number of items that are contained in the collection. (Производный от IReadOnlyCollection.) |
![]() |
Item | Gets the element at the specified index. |
В начало
Методы
Имя | Описание | |
---|---|---|
![]() |
Contains | Determines whether the specified item is contained in the collection. (Производный от IReadOnlyCollection<T>.) |
![]() |
CopyTo | Copies the elements of the collection to the specified array, starting at a particular array index. (Производный от IReadOnlyCollection<T>.) |
![]() |
GetEnumerator | (Производный от IEnumerable<T>.) |
В начало