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.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.12.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
element
Type: Microsoft.VisualStudio.Modeling.ModelElementThe ModelElement whose extensions are to be enumerated
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.