ToKeyValuePairs Method
[This content is no longer valid. For the latest information on "M", "Quadrant", SQL Server Modeling Services, and the Repository, see the Model Citizen blog.]
Represents a collection of edges as an enumerable collection of key/value pairs, with the label as the key and the target node as the value.
Namespace: System.Dataflow
Assembly: System.Dataflow (in System.Dataflow.dll)
Syntax
'Declaration
PublicSharedFunctionToKeyValuePairs ( _
edgesAsIEnumerable(OfEdge) _
) AsIEnumerable(OfKeyValuePair(OfLabel, Node))
'Usage
DimedgesAsIEnumerable(OfEdge)
DimreturnValueAsIEnumerable(OfKeyValuePair(OfLabel, Node))
returnValue = Edge.ToKeyValuePairs(edges)
publicstaticIEnumerable<KeyValuePair<Label, Node>> ToKeyValuePairs(
IEnumerable<Edge> edges
)
public:
staticIEnumerable<KeyValuePair<Label^, Node>>^ ToKeyValuePairs(
IEnumerable<Edge>^ edges
)
publicstaticfunctionToKeyValuePairs(
edges : IEnumerable<Edge>
) : IEnumerable<KeyValuePair<Label, Node>>
Parameters
- edges
Type: System.Collections.Generic. . :: . .IEnumerable< (Of < ( <'Edge> ) > ) >
An enumerable collection of edges.
Return Value
Type: System.Collections.Generic. . :: . .IEnumerable< (Of < ( <'KeyValuePair< (Of < ( <'Label, Node> ) > ) >> ) > ) >
A collection of key-value pairs, with the label as the key and the target node as the value.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see https://msdn.microsoft.com/en-us/library/8skskf63(v=vs.85).