ModelElement.GetAllExtensions 方法

返回对扩展组件之间树的范围第一个遍历在指定的 ModelElement 嵌入的可枚举的。

命名空间:  Microsoft.VisualStudio.Modeling
程序集:  Microsoft.VisualStudio.Modeling.Sdk.11.0(在 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
)

参数

返回值

类型:System.Collections.Generic.IEnumerable<ExtensionElement>
宽度优先可枚举在所有 ExtensionElements 中

备注

如果指定的 ModelElement 本身 ExtensionElement 然后该扩展名只直接和间接扩展包括在内。若要枚举所有扩展中。 “虚拟麦”调用 GetBaseElement() 获取基本麦然后 GetAllExtensions()。

.NET Framework 安全性

请参见

参考

ModelElement 类

Microsoft.VisualStudio.Modeling 命名空间