特定のコンテナー要素のすべての要素名のマップを取得し、ID の役割埋め込まれた
名前空間: Microsoft.VisualStudio.Modeling
アセンブリ: Microsoft.VisualStudio.Modeling.Sdk.11.0 (Microsoft.VisualStudio.Modeling.Sdk.11.0.dll 内)
構文
'宣言
Protected Function GetElementNames ( _
container As ModelElement, _
embeddedDomainRole As DomainRoleInfo, _
excludedElement As ModelElement _
) As Dictionary(Of String, ModelElement)
protected Dictionary<string, ModelElement> GetElementNames(
ModelElement container,
DomainRoleInfo embeddedDomainRole,
ModelElement excludedElement
)
パラメーター
- container
型 : Microsoft.VisualStudio.Modeling.ModelElement
要素の埋め込み。
- embeddedDomainRole
型 : Microsoft.VisualStudio.Modeling.DomainRoleInfo
コンテナーによって埋め込まれている要素によってドメインのロール。
- excludedElement
型 : Microsoft.VisualStudio.Modeling.ModelElement
検索から除外する要素 (null も指定できます)。
戻り値
型 : System.Collections.Generic.Dictionary<String, ModelElement>
キーを持つディクショナリ オブジェクトはすべて一意の名前と値を指定した名前の最初に見つかった要素です。
例外
| 例外 | 条件 |
|---|---|
| ArgumentNullException | container または embeddedDomainRole が nullnull 参照 (Visual Basic では Nothing) です。 |
.NET Framework セキュリティ
- 直前の呼び出し元に対する完全な信頼。このメンバーは、部分的に信頼されているコードから使用することはできません。詳細については、「部分信頼コードからのライブラリの使用」を参照してください。