IElementDirectory.FindElements<T> 方法 (Boolean)

在指定类型目录中查找所有元素。

命名空间:  Microsoft.VisualStudio.Modeling
程序集:  Microsoft.VisualStudio.Modeling.Sdk.12.0(在 Microsoft.VisualStudio.Modeling.Sdk.12.0.dll 中)

语法

声明
Function FindElements(Of T As ModelElement) ( _
    includeDescendants As Boolean _
) As ReadOnlyCollection(Of T)
ReadOnlyCollection<T> FindElements<T>(
    bool includeDescendants
)
where T : ModelElement

类型参数

  • T
    元素类型

参数

  • includeDescendants
    类型:System.Boolean
    包括从特定类的类型获取的所有字段类的元素指定,则为 true;否则为 false。

返回值

类型:System.Collections.ObjectModel.ReadOnlyCollection<T>
指定类型的只读集合。

备注

元素,则未找到,空列表返回。

.NET Framework 安全性

请参阅

参考

IElementDirectory 接口

FindElements 重载

Microsoft.VisualStudio.Modeling 命名空间