GraphEnumerable.AsNodes Method
Converts the given GraphObjects into GraphNodes. Groups are converted to nodes.
No links are returned.
Namespace: Microsoft.VisualStudio.GraphModel
Assembly: Microsoft.VisualStudio.GraphModel (in Microsoft.VisualStudio.GraphModel.dll)
Syntax
'Declaration
<ExtensionAttribute> _
Public Shared Function AsNodes ( _
objects As IEnumerable(Of GraphObject) _
) As IEnumerable(Of GraphNode)
public static IEnumerable<GraphNode> AsNodes(
this IEnumerable<GraphObject> objects
)
[ExtensionAttribute]
public:
static IEnumerable<GraphNode^>^ AsNodes(
IEnumerable<GraphObject^>^ objects
)
static member AsNodes :
objects:IEnumerable<GraphObject> -> IEnumerable<GraphNode>
public static function AsNodes(
objects : IEnumerable<GraphObject>
) : IEnumerable<GraphNode>
Parameters
- objects
Type: IEnumerable<GraphObject>
Return Value
Type: IEnumerable<GraphNode>
All the nodes in the collection.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type IEnumerable<GraphObject>. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
.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.