Share via


GraphNodeCollection.GetByProperty(GraphProperty, Object) Method

Definition

Returns all nodes in the graph that have the specified property value.

public:
 System::Collections::Generic::IEnumerable<Microsoft::VisualStudio::GraphModel::GraphNode ^> ^ GetByProperty(Microsoft::VisualStudio::GraphModel::GraphProperty ^ property, System::Object ^ value);
[System.Runtime.CompilerServices.IteratorStateMachine(typeof(Microsoft.VisualStudio.GraphModel.GraphNodeCollection+<GetByProperty>d__40))]
public System.Collections.Generic.IEnumerable<Microsoft.VisualStudio.GraphModel.GraphNode> GetByProperty (Microsoft.VisualStudio.GraphModel.GraphProperty property, object value);
[<System.Runtime.CompilerServices.IteratorStateMachine(typeof(Microsoft.VisualStudio.GraphModel.GraphNodeCollection+<GetByProperty>d__40))>]
member this.GetByProperty : Microsoft.VisualStudio.GraphModel.GraphProperty * obj -> seq<Microsoft.VisualStudio.GraphModel.GraphNode>
Public Iterator Function GetByProperty (property As GraphProperty, value As Object) As IEnumerable(Of GraphNode)

Parameters

property
GraphProperty

The property to look for.

value
Object

The value to compare

Returns

The Nodes that have the specified property value

Attributes

Applies to