IElementDirectory.FindElements メソッド (DomainClassInfo, Boolean)

指定した型のディレクトリのすべての要素を検索します。

名前空間:  Microsoft.VisualStudio.Modeling
アセンブリ:  Microsoft.VisualStudio.Modeling.Sdk.11.0 (Microsoft.VisualStudio.Modeling.Sdk.11.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: <w:r> <w:rPr> <w:rStyle w:val="ParameterReference"/> r></w: <w:t> rPr>domainClass</w: t></w: パラメーター <w:r> <w:t> の r>; それ以外の場合は false。

戻り値

型 : System.Collections.ObjectModel.ReadOnlyCollection<ModelElement>
指定された型の読み取り専用のコレクション。

解説

空のリストは要素が見つからない場合に返されます。

.NET Framework セキュリティ

  • 直前の呼び出し元に対する完全な信頼。このメンバーは、部分的に信頼されているコードから使用することはできません。詳細については、「部分信頼コードからのライブラリの使用」を参照してください。

参照

関連項目

IElementDirectory インターフェイス

FindElements オーバーロード

Microsoft.VisualStudio.Modeling 名前空間