Share via


ModelElement.GetAllExtensions Method

Return an enumerable that performs a breadth first traversal across the tree of extension elements embedded in the specified ModelElement.

Namespace:  Microsoft.VisualStudio.Modeling
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.10.0.dll)

Syntax

'Declaration
Public Shared Function GetAllExtensions ( _
    element As ModelElement _
) As IEnumerable(Of ExtensionElement)
public static IEnumerable<ExtensionElement> GetAllExtensions(
    ModelElement element
)
public:
static IEnumerable<ExtensionElement^>^ GetAllExtensions(
    ModelElement^ element
)
static member GetAllExtensions : 
        element:ModelElement -> IEnumerable<ExtensionElement> 
public static function GetAllExtensions(
    element : ModelElement
) : IEnumerable<ExtensionElement>

Parameters

Return Value

Type: System.Collections.Generic.IEnumerable<ExtensionElement>
Breadth-first enumerable across all ExtensionElements

Remarks

If the specified ModelElement is itself an ExtensionElement then only the direct and indirect extensions of that extension are included. To enumerate all extensions in a "virtual MEL" call GetBaseElement() to get the base MEL and then GetAllExtensions() against that.

.NET Framework Security

See Also

Reference

ModelElement Class

Microsoft.VisualStudio.Modeling Namespace