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.11.0 (in Microsoft.VisualStudio.Modeling.Sdk.11.0.dll)


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


Return Value

Type: IEnumerable<ExtensionElement>
Breadth-first enumerable across all ExtensionElements


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


ModelElement Class

Microsoft.VisualStudio.Modeling Namespace