다음을 통해 공유


GraphEnumerable.GetGroups Method

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

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

Return Value

Type: System.Collections.Generic.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

See Also

Reference

GraphEnumerable Class

Microsoft.VisualStudio.GraphModel Namespace