在指定类型目录中查找所有元素。
命名空间: Microsoft.VisualStudio.Modeling
程序集: Microsoft.VisualStudio.Modeling.Sdk.12.0(在 Microsoft.VisualStudio.Modeling.Sdk.12.0.dll 中)
语法
声明
Function FindElements ( _
domainClassId As Guid, _
includeDescendants As Boolean _
) As ReadOnlyCollection(Of ModelElement)
ReadOnlyCollection<ModelElement> FindElements(
Guid domainClassId,
bool includeDescendants
)
参数
- domainClassId
类型:System.Guid
要查找的域类的 ID。
- includeDescendants
类型:System.Boolean
包括从特定类获得的任何特定类的元素指定该 </w:t></w:r><w:r><w:rPr><w:rStyle w:val="ParameterReference"/></w:rPr><w:t>domainClassId</w:t></w:r><w:r><w:t> 参数,则为 true;否则为 false。
返回值
类型:System.Collections.ObjectModel.ReadOnlyCollection<ModelElement>
指定类型的只读集合。
备注
元素,则未找到,空列表返回。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。