GraphNodeId.GetPartial Method
Gets a partial GraphNodeId based on the name and value. Does a lookup against a Dictionary to minimize the number of GraphNodeIds around. It is generally not right to get a partial GraphNodeId and use it for a node ID.
Always use a full Nested GraphNodeId.
Namespace: Microsoft.VisualStudio.GraphModel
Assembly: Microsoft.VisualStudio.GraphModel (in Microsoft.VisualStudio.GraphModel.dll)
Syntax
'Declaration
Public Shared Function GetPartial ( _
name As GraphNodeIdName, _
value As Object _
) As GraphNodeId
public static GraphNodeId GetPartial(
GraphNodeIdName name,
Object value
)
public:
static GraphNodeId^ GetPartial(
GraphNodeIdName^ name,
Object^ value
)
static member GetPartial :
name:GraphNodeIdName *
value:Object -> GraphNodeId
public static function GetPartial(
name : GraphNodeIdName,
value : Object
) : GraphNodeId
Parameters
name
Type: Microsoft.VisualStudio.GraphModel.GraphNodeIdNameThe name to search for.
value
Type: ObjectThe value to search for.
Return Value
Type: Microsoft.VisualStudio.GraphModel.GraphNodeId
The partial GraphNodeId if found; null otherwise.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.