CoreDomainModel.CreateElement(Partition, Type, PropertyAssignment[]) Méthode

Définition

Crée un élément de type spécifié.

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

Paramètres

partition
Partition

Partition dans laquelle l'élément doit être créé.

elementType
Type

Type Element appartenant à ce modèle de domaine.

propertyAssignments
PropertyAssignment[]

Nouvelles assignations de propriété d'élément.

Retours

ModelElement

Élément créé.

S’applique à