Share via


IReadOnlyCollection<T> Interface

Simple interface that exposes a Count property over a collection

Namespace:  Microsoft.VisualStudio.GraphModel
Assembly:  Microsoft.VisualStudio.GraphModel (in Microsoft.VisualStudio.GraphModel.dll)

Syntax

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

Type Parameters

  • T

The IReadOnlyCollection<T> type exposes the following members.

Properties

  Name Description
Public property Count
Public property Owner Gets the Graph that this object belongs to. (Inherited from IHasGraphOwner.)

Top

Methods

  Name Description
Public method GetEnumerator Returns an enumerator that iterates through the collection. (Inherited from IEnumerable<T>.)

Top

See Also

Reference

Microsoft.VisualStudio.GraphModel Namespace