Interface IReadOnlyList<T>

Defines properties and methods for the generic immutable list of objects that can be accessed by index.

Espace de noms :  Microsoft.SqlServer.Management.Sdk.Sfc
Assembly :  Microsoft.SqlServer.Management.Sdk.Sfc (en Microsoft.SqlServer.Management.Sdk.Sfc.dll)

Syntaxe

'Déclaration
Public Interface IReadOnlyList(Of T) _
    Inherits IReadOnlyCollection(Of T), IReadOnlyCollection, IEnumerable(Of T),  _
    IEnumerable
'Utilisation
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 ne prend pas en charge les types et les méthodes génériques.

Paramètres de type

  • T
    The type of the elements in the list.

Le type IReadOnlyList<T> expose les membres suivants.

Propriétés

  Nom Description
Propriété publique Count Gets the number of items that are contained in the collection. (hérité de IReadOnlyCollection.)
Propriété publique Item Gets the element at the specified index.

Haut de la page

Méthodes

  Nom Description
Méthode publique Contains Determines whether the specified item is contained in the collection. (hérité de IReadOnlyCollection<T>.)
Méthode publique CopyTo Copies the elements of the collection to the specified array, starting at a particular array index. (hérité de IReadOnlyCollection<T>.)
Méthode publique GetEnumerator (hérité de IEnumerable<T>.)

Haut de la page

Voir aussi

Référence

Espace de noms Microsoft.SqlServer.Management.Sdk.Sfc