IElementDirectory.FindElements 方法 (DomainClassInfo, Boolean)

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

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

语法

声明
Function FindElements ( _
    domainClass As DomainClassInfo, _
    includeDescendants As Boolean _
) As ReadOnlyCollection(Of ModelElement)
ReadOnlyCollection<ModelElement> FindElements(
    DomainClassInfo domainClass,
    bool includeDescendants
)

参数

  • includeDescendants
    类型:System.Boolean
    包括从特定类获得的任何特定类的元素指定该 </w:t></w:r><w:r><w:rPr><w:rStyle w:val="ParameterReference"/></w:rPr><w:t>domainClass</w:t></w:r><w:r><w:t> 参数,则为 true;否则为 false。

返回值

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

备注

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

.NET Framework 安全性

请参阅

参考

IElementDirectory 接口

FindElements 重载

Microsoft.VisualStudio.Modeling 命名空间