MergeContext.GetRootModelElements(Transaction) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns the collection of ModelElements (non-PresentationElements) that serve as the root elements in the reconstituted ElementGroup.
public:
static System::Collections::ObjectModel::ReadOnlyCollection<Microsoft::VisualStudio::Modeling::ModelElement ^> ^ GetRootModelElements(Microsoft::VisualStudio::Modeling::Transaction ^ transaction);
public static System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.VisualStudio.Modeling.ModelElement> GetRootModelElements (Microsoft.VisualStudio.Modeling.Transaction transaction);
static member GetRootModelElements : Microsoft.VisualStudio.Modeling.Transaction -> System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.VisualStudio.Modeling.ModelElement>
Public Shared Function GetRootModelElements (transaction As Transaction) As ReadOnlyCollection(Of ModelElement)
Parameters
- transaction
- Transaction
The transaction containing the saved MergeContext. This is typically the top-level transaction.
Returns
The collection of ModelElements (non-PresentationElements) that serve as the root elements in the reconstituted ElementGroup.