Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
This class provides methods for manipulating a collection of Nodes. This class does not preserve the order in which you added the nodes, so when you enumerate them you will get them back in a random order.
Inheritance Hierarchy
System.Object
Microsoft.VisualStudio.GraphModel.GraphNodeCollection
Namespace: Microsoft.VisualStudio.GraphModel
Assembly: Microsoft.VisualStudio.GraphModel (in Microsoft.VisualStudio.GraphModel.dll)
Syntax
'Declaration
Public Class GraphNodeCollection _
Implements ICollection(Of GraphNode), IEnumerable(Of GraphNode), _
IEnumerable
public class GraphNodeCollection : ICollection<GraphNode>,
IEnumerable<GraphNode>, IEnumerable
public ref class GraphNodeCollection : ICollection<GraphNode^>,
IEnumerable<GraphNode^>, IEnumerable
type GraphNodeCollection =
class
interface ICollection<GraphNode>
interface IEnumerable<GraphNode>
interface IEnumerable
end
public class GraphNodeCollection implements ICollection<GraphNode>, IEnumerable<GraphNode>, IEnumerable
The GraphNodeCollection type exposes the following members.
Properties
Name | Description | |
---|---|---|
![]() |
Containers | Returns an enumerable which consists of all nodes that are containers. |
![]() |
Count | Return the number of nodes in the collection. |
![]() |
Graph | Gets the Graph associated with this nodes collection |
![]() |
IsReadOnly | Gets a value indicating whether the System.Collections.Generic.ICollection is read-only. |
![]() |
Item | Gets the Node using the given id. Throws exception on set if another node with the same id already exists. |
Top
Methods
Name | Description | |
---|---|---|
![]() |
Add(GraphNode) | Adds a link to the graph, or merge it with an existing Link object |
![]() |
Add(IEnumerable<GraphNode>) | Add all the nodes in the given set. |
![]() |
Add(GraphNode, GraphNode%) | Adds the specified node to the graph. |
![]() |
Clear | Remove all nodes in the collection |
![]() |
Contains | Determines if the given node is in this collection |
![]() |
CopyTo | Copies the elements of the System.Collections.Generic.ICollection to an System.Array, starting at a particular System.Array index. |
![]() |
Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
![]() |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() |
Get(String) | Gets the node with the specified id |
![]() |
Get(GraphNodeId) | |
![]() |
GetByCategory(array<String[]) | Returns all nodes in the graph that have the specified categories |
![]() |
GetByCategory(array<GraphCategory[]) | Returns all nodes in the graph that have the specified categories. |
![]() |
GetByProperty | Returns all nodes in the graph that have the specified property value. |
![]() |
GetEnumerator | Gets the typed enumerator for this collection |
![]() |
GetFiltered | |
![]() |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() |
GetOrCreate(String) | Attempts to get the node with the specified id. If not found, it will create a new node. |
![]() |
GetOrCreate(GraphNodeId) | |
![]() |
GetOrCreate(String, String, GraphCategory) | Attempts to get the node with the specified id. If not found, it will create a new node. |
![]() |
GetOrCreate(GraphNodeId, String, GraphCategory) | |
![]() |
GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() |
Remove(String) | Remove the specified node |
![]() |
Remove(GraphNode) | Removes the first occurrence of a specific object from the System.Collections.Generic.ICollection. |
![]() |
Remove(IEnumerable<GraphNode>) | Remove all the nodes in the given set. |
![]() |
Remove(GraphNodeId) | |
![]() |
Remove(GraphNode, GraphNode%) | Remove the specified node |
![]() |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Top
Events
Name | Description | |
---|---|---|
![]() |
NodesUpdated | Event implementation for NodesUpdated. |
Top
Explicit Interface Implementations
Name | Description | |
---|---|---|
![]() ![]() |
IEnumerable.GetEnumerator | Gets the enumerator for this collection |
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.