Share via


GraphNodeIdCollection.GetValueByName<T> Method

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

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

Syntax

'Declaration
Public Function GetValueByName(Of T) ( _
    name As GraphNodeIdName _
) As T
public T GetValueByName<T>(
    GraphNodeIdName name
)
public:
generic<typename T>
T GetValueByName(
    GraphNodeIdName^ name
)
member GetValueByName : 
        name:GraphNodeIdName -> 'T 
JScript does not support generic types or methods.

Type Parameters

  • T

Parameters

Return Value

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

.NET Framework Security

See Also

Reference

GraphNodeIdCollection Class

Microsoft.VisualStudio.GraphModel Namespace