Freigeben über


IReadOnlyList<T>-Schnittstelle

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

Namespace:  Microsoft.SqlServer.Management.Sdk.Sfc
Assembly:  Microsoft.SqlServer.Management.Sdk.Sfc (in Microsoft.SqlServer.Management.Sdk.Sfc.dll)

Syntax

'Declaration
Public Interface IReadOnlyList(Of T) _
    Inherits IReadOnlyCollection(Of T), IReadOnlyCollection, IEnumerable(Of T),  _
    IEnumerable
'Usage
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 bietet keine Unterstützung für die Verwendung generischer Typen und Methoden.

Typparameter

  • T
    The type of the elements in the list.

Der IReadOnlyList<T>-Typ macht folgende Elemente verfügbar.

Eigenschaften

  Name Beschreibung
Öffentliche Eigenschaft Count Gets the number of items that are contained in the collection. (Geerbt von IReadOnlyCollection.)
Öffentliche Eigenschaft Item Gets the element at the specified index.

Zum Anfang

Methoden

  Name Beschreibung
Öffentliche Methode Contains Determines whether the specified item is contained in the collection. (Geerbt von IReadOnlyCollection<T>.)
Öffentliche Methode CopyTo Copies the elements of the collection to the specified array, starting at a particular array index. (Geerbt von IReadOnlyCollection<T>.)
Öffentliche Methode GetEnumerator (Geerbt von IEnumerable<T>.)

Zum Anfang

Siehe auch

Verweis

Microsoft.SqlServer.Management.Sdk.Sfc-Namespace