DslDefinitionModelDomainModel.CreateElement Method

Definition

Creates an element of specified type.

public:
 override Microsoft::VisualStudio::Modeling::ModelElement ^ CreateElement(Microsoft::VisualStudio::Modeling::Partition ^ partition, Type ^ elementType, cli::array <Microsoft::VisualStudio::Modeling::PropertyAssignment ^> ^ propertyAssignments);
public override sealed Microsoft.VisualStudio.Modeling.ModelElement CreateElement (Microsoft.VisualStudio.Modeling.Partition partition, Type elementType, Microsoft.VisualStudio.Modeling.PropertyAssignment[] propertyAssignments);
override this.CreateElement : Microsoft.VisualStudio.Modeling.Partition * Type * Microsoft.VisualStudio.Modeling.PropertyAssignment[] -> Microsoft.VisualStudio.Modeling.ModelElement
Public Overrides NotOverridable 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