ModelElement::GetAllExtensions Method (ModelElement^)

 

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

public:
static IEnumerable<ExtensionElement^>^ GetAllExtensions(
	ModelElement^ element
)

Parameters

element
Type: Microsoft.VisualStudio.Modeling::ModelElement^

The ModelElement whose extensions are to be enumerated

Return Value

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

Return to top
Show: