CoreDomainModel.CreateElement Method

Creates an element of specified type.

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

Syntax

public override sealed ModelElement CreateElement(
    Partition partition,
    Type elementType,
    PropertyAssignment[] propertyAssignments
)

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

CoreDomainModel Class

Microsoft.VisualStudio.Modeling Namespace