トランザクションの MergeContext の RootMel のコレクションに modelElement を追加します。
名前空間: Microsoft.VisualStudio.Modeling
アセンブリ: Microsoft.VisualStudio.Modeling.Sdk.11.0 (Microsoft.VisualStudio.Modeling.Sdk.11.0.dll 内)
構文
'宣言
Public Shared Sub AddRootModelElement ( _
transaction As Transaction, _
modelElement As ModelElement _
)
public static void AddRootModelElement(
Transaction transaction,
ModelElement modelElement
)
パラメーター
- transaction
型 : Microsoft.VisualStudio.Modeling.Transaction
[トランザクション格納された MergeContext。通常は、トップレベルのトランザクションです。
- modelElement
型 : Microsoft.VisualStudio.Modeling.ModelElement
RootMel のコレクションに追加するモデル要素。
.NET Framework セキュリティ
- 直前の呼び出し元に対する完全な信頼。このメンバーは、部分的に信頼されているコードから使用することはできません。詳細については、「部分信頼コードからのライブラリの使用」を参照してください。