ModelElement.GetAllExtensions(ModelElement) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
返回一个可枚举,该枚举在嵌入到指定 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)
参数
- element
- ModelElement
要枚举其扩展的 ModelElement
返回
广度-跨所有 ExtensionElements 的第一枚举
- 属性
注解
如果指定的 ModelElement 本身为 Extensionextendselement.extensionelement,则仅包含该扩展的直接和间接扩展。 若要枚举 "virtual MEL" 调用 GetBaseElement 中的所有扩展 () 获取基本 MEL,然后 GetAllExtensions () 。