Compartir a través de


ModelElement.GetAllExtensions(ModelElement) Method

Definition

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

public:
 static System::Collections::Generic::IEnumerable<Microsoft::VisualStudio::Modeling::ExtensionElement ^> ^ GetAllExtensions(Microsoft::VisualStudio::Modeling::ModelElement ^ element);
[System.Runtime.CompilerServices.IteratorStateMachine(typeof(Microsoft.VisualStudio.Modeling.ModelElement+<GetAllExtensions>d__60))]
public static System.Collections.Generic.IEnumerable<Microsoft.VisualStudio.Modeling.ExtensionElement> GetAllExtensions (Microsoft.VisualStudio.Modeling.ModelElement element);
[<System.Runtime.CompilerServices.IteratorStateMachine(typeof(Microsoft.VisualStudio.Modeling.ModelElement+<GetAllExtensions>d__60))>]
static member GetAllExtensions : Microsoft.VisualStudio.Modeling.ModelElement -> seq<Microsoft.VisualStudio.Modeling.ExtensionElement>
Public Shared Iterator Function GetAllExtensions (element As ModelElement) As IEnumerable(Of ExtensionElement)

Parameters

element
ModelElement

The ModelElement whose extensions are to be enumerated

Returns

Breadth-first enumerable across all ExtensionElements

Attributes

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.

Applies to