DomainModel.CreateElement(Partition, Type, PropertyAssignment[]) Method

Definition

Creates an element of specified type.

public:
 virtual Microsoft::VisualStudio::Modeling::ModelElement ^ CreateElement(Microsoft::VisualStudio::Modeling::Partition ^ partition, Type ^ elementType, cli::array <Microsoft::VisualStudio::Modeling::PropertyAssignment ^> ^ propertyAssignments);
public virtual Microsoft.VisualStudio.Modeling.ModelElement CreateElement (Microsoft.VisualStudio.Modeling.Partition partition, Type elementType, Microsoft.VisualStudio.Modeling.PropertyAssignment[] propertyAssignments);
abstract member CreateElement : Microsoft.VisualStudio.Modeling.Partition * Type * Microsoft.VisualStudio.Modeling.PropertyAssignment[] -> Microsoft.VisualStudio.Modeling.ModelElement
override this.CreateElement : Microsoft.VisualStudio.Modeling.Partition * Type * Microsoft.VisualStudio.Modeling.PropertyAssignment[] -> Microsoft.VisualStudio.Modeling.ModelElement
Public Overridable Function CreateElement (partition As Partition, elementType As Type, propertyAssignments As PropertyAssignment()) As ModelElement

Parameters

partition
Partition

Partition where element is to be created.

elementType
Type

Element type which belongs to this domain model.

propertyAssignments
PropertyAssignment[]

New element property assignments.

Returns

Created element.

Applies to