Share via


IReadOnlyCollection<T> Interface

Defines properties and methods for the generic type read-only collections.

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

Syntax

'Declaration
Public Interface IReadOnlyCollection(Of T) _
    Inherits IReadOnlyCollection, IEnumerable(Of T), IEnumerable
'Usage
Dim instance As IReadOnlyCollection(Of T)
public interface IReadOnlyCollection<T> : IReadOnlyCollection, 
    IEnumerable<T>, IEnumerable
generic<typename T>
public interface class IReadOnlyCollection : IReadOnlyCollection, 
    IEnumerable<T>, IEnumerable
type IReadOnlyCollection<'T> =  
    interface 
        interface IReadOnlyCollection 
        interface IEnumerable<'T>
        interface IEnumerable 
    end
JScript does not support generic types and methods.

Type Parameters

  • T
    The type of the element in the collection.

The IReadOnlyCollection<T> type exposes the following members.

Properties

  Name Description
Public property Count Gets the number of items that are contained in the collection. (Inherited from IReadOnlyCollection.)

Top

Methods

  Name Description
Public method Contains Determines whether the specified item is contained in the collection.
Public method CopyTo Copies the elements of the collection to the specified array, starting at a particular array index.
Public method GetEnumerator (Inherited from IEnumerable<T>.)

Top

See Also

Reference

Microsoft.SqlServer.Management.Sdk.Sfc Namespace