GraphEnumerable.GetGroups Method
From the list of GraphObject, get all those that are groups.
Namespace: Microsoft.VisualStudio.GraphModel
Assembly: Microsoft.VisualStudio.GraphModel (in Microsoft.VisualStudio.GraphModel.dll)
Syntax
'Declaration
<ExtensionAttribute> _
Public Shared Function GetGroups ( _
objects As IEnumerable(Of GraphObject) _
) As IEnumerable(Of GraphGroup)
public static IEnumerable<GraphGroup> GetGroups(
this IEnumerable<GraphObject> objects
)
[ExtensionAttribute]
public:
static IEnumerable<GraphGroup^>^ GetGroups(
IEnumerable<GraphObject^>^ objects
)
static member GetGroups :
objects:IEnumerable<GraphObject> -> IEnumerable<GraphGroup>
public static function GetGroups(
objects : IEnumerable<GraphObject>
) : IEnumerable<GraphGroup>
Parameters
- objects
Type: IEnumerable<GraphObject>
Return Value
Type: IEnumerable<GraphGroup>
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.