Delen via


GraphNodeIdCollection Class

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Contains a list of GraphNodeIds. This can be stored inside the .Value part of a GraphNodeId. This is an immutable list as soon as it is created. We use an abstract class because this class does not know the formatting required to serialize the list back out to a string.

The derived class will know this.

Inheritance Hierarchy

System.Object
  Microsoft.VisualStudio.GraphModel.GraphNodeIdCollection

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

Syntax

'Declaration
Public Class GraphNodeIdCollection _
    Implements IEnumerable(Of GraphNodeId), IEnumerable,  _
    IComparable
public class GraphNodeIdCollection : IEnumerable<GraphNodeId>, 
    IEnumerable, IComparable
public ref class GraphNodeIdCollection : IEnumerable<GraphNodeId^>, 
    IEnumerable, IComparable
type GraphNodeIdCollection =  
    class 
        interface IEnumerable<GraphNodeId>
        interface IEnumerable 
        interface IComparable 
    end
public class GraphNodeIdCollection implements IEnumerable<GraphNodeId>, IEnumerable, IComparable

The GraphNodeIdCollection type exposes the following members.

Constructors

  Name Description
Public method GraphNodeIdCollection Construct a GraphNodeIdCollection.

Top

Properties

  Name Description
Public property HomogeneousElements Whether the array elements are is homogeneous (array item names are all the same so no need repeating, e.g. Name=[item1,item2,item3]) or heterogeneous - e.g (Name1=item1, Name2=item2, Name3=item3))
Public property Item
Public property Length Get the number of items in the list

Top

Methods

  Name Description
Public method CompareTo
Public method Equals Compares two of these lists to see whether all of the items are equal. This assumes the items will be in the same order inside the list. This is a performance optimization, and needed for method arguments, where a different order means a different overload (Overrides Object.Equals(Object).)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Computes the hash code for this collection and caches it (Overrides Object.GetHashCode().)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method GetValueByName<T> Gets a value from the first embedded GraphNodeId that matches the name
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ToString Gets this GraphNodeId collection as a string (Overrides Object.ToString().)

Top

Explicit Interface Implementations

  Name Description
Explicit interface implemetationPrivate method IEnumerable<GraphNodeId>.GetEnumerator
Explicit interface implemetationPrivate method IEnumerable.GetEnumerator Get our Enumerator. This prevents direct access to the _array

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.VisualStudio.GraphModel Namespace