Condividi tramite


GraphNodeIdCollection.GetValueByName<T>(GraphNodeIdName) Method

Definition

Gets a value from the first embedded GraphNodeId that matches the name

public:
generic <typename T>
 T GetValueByName(Microsoft::VisualStudio::GraphModel::GraphNodeIdName ^ name);
public T GetValueByName<T> (Microsoft.VisualStudio.GraphModel.GraphNodeIdName name);
member this.GetValueByName : Microsoft.VisualStudio.GraphModel.GraphNodeIdName -> 'T
Public Function GetValueByName(Of T) (name As GraphNodeIdName) As T

Type Parameters

T

Parameters

name
GraphNodeIdName

The name to search for

Returns

T

The value from first GraphNodeId that matches the give name, the default value if the name is not found in this collection

Applies to