DslDefinitionModelDomainModel.CreateElement Method

Creates an element of specified type.

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

Syntax

声明
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
)
public:
virtual ModelElement^ CreateElement(
    Partition^ partition, 
    Type^ elementType, 
    array<PropertyAssignment^>^ propertyAssignments
) override sealed
abstract CreateElement : 
        partition:Partition * 
        elementType:Type * 
        propertyAssignments:PropertyAssignment[] -> ModelElement 
override CreateElement : 
        partition:Partition * 
        elementType:Type * 
        propertyAssignments:PropertyAssignment[] -> ModelElement 
public override final function CreateElement(
    partition : Partition, 
    elementType : Type, 
    propertyAssignments : PropertyAssignment[]
) : ModelElement

Parameters

  • elementType
    Type: System.Type
    Element type which belongs to this domain model.

Return Value

Type: Microsoft.VisualStudio.Modeling.ModelElement
Created element.

.NET Framework Security

See Also

Reference

DslDefinitionModelDomainModel Class

Microsoft.VisualStudio.Modeling.DslDefinition Namespace