共用方式為


IElementDirectory.FindElements<T> 方法

尋找指定的型別的目錄中的所有項目。

命名空間:  Microsoft.VisualStudio.Modeling
組件:  Microsoft.VisualStudio.Modeling.Sdk.12.0 (在 Microsoft.VisualStudio.Modeling.Sdk.12.0.dll 中)

語法

'宣告
Function FindElements(Of T As ModelElement) As ReadOnlyCollection(Of T)
ReadOnlyCollection<T> FindElements<T>()
where T : ModelElement

類型參數

  • T
    項目的類型。

傳回值

類型:System.Collections.ObjectModel.ReadOnlyCollection<T>
所指定型別的唯讀集合。

備註

如果找不到,則要傳回項目。

.NET Framework 安全性

請參閱

參考

IElementDirectory 介面

FindElements 多載

Microsoft.VisualStudio.Modeling 命名空間