CoreDesignSurfaceDomainModel.CreateElement Method
Creates an element of specified type.
Namespace: Microsoft.VisualStudio.Modeling.Diagrams
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Diagrams.11.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.11.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
)
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
partition
Type: Microsoft.VisualStudio.Modeling.PartitionPartition where element is to be created.
elementType
Type: TypeElement type which belongs to this domain model.
propertyAssignments
Type: array<Microsoft.VisualStudio.Modeling.PropertyAssignment[]New element property assignments.
Return Value
Type: Microsoft.VisualStudio.Modeling.ModelElement
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.