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.


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

public class GraphNodeIdCollection : IEnumerable<GraphNodeId>, 
	IEnumerable, IComparable

The GraphNodeIdCollection type exposes the following members.

Public methodGraphNodeIdCollectionConstruct a GraphNodeIdCollection.

Public propertyHomogeneousElementsWhether 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 propertyItem
Public propertyLengthGet the number of items in the list

Public methodCompareTo
Public methodEqualsCompares 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 methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeComputes the hash code for this collection and caches it (Overrides Object.GetHashCode().)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodGetValueByName<T>Gets a value from the first embedded GraphNodeId that matches the name
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodToStringGets this GraphNodeId collection as a string (Overrides Object.ToString().)

Explicit interface implemetationPrivate methodIEnumerable<GraphNodeId>.GetEnumerator
Explicit interface implemetationPrivate methodIEnumerable.GetEnumeratorGet our Enumerator. This prevents direct access to the _array

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2015 Microsoft