Freigeben über


DslDefinitionModelDomainModel.CreateElement-Methode

Erstellt ein Element vom angegebenen Typ.

Namespace:  Microsoft.VisualStudio.Modeling.DslDefinition
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.DslDefinition.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.DslDefinition.12.0.dll)

Syntax

'Declaration
Public Overrides NotOverridable Function CreateElement ( _
    partition As Partition, _
    elementType As Type, _
    propertyAssignments As PropertyAssignment() _
) As ModelElement
public override sealed ModelElement CreateElement(
    Partition partition,
    Type elementType,
    PropertyAssignment[] propertyAssignments
)

Parameter

  • elementType
    Typ: System.Type
    Elementtyp, der diesem Domänenmodell gehört.

Rückgabewert

Typ: Microsoft.VisualStudio.Modeling.ModelElement
Erstelltes Element.

.NET Framework-Sicherheit

Siehe auch

Referenz

DslDefinitionModelDomainModel Klasse

Microsoft.VisualStudio.Modeling.DslDefinition-Namespace