Delen via


ElementFactory.CreateElement Method (Guid, array<PropertyAssignment )

Creates a new element instance of a specified type.

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

Syntax

'Declaration
Public Function CreateElement ( _
    domainClassId As Guid, _
    ParamArray propertyAssignments As PropertyAssignment() _
) As ModelElement
public ModelElement CreateElement(
    Guid domainClassId,
    params PropertyAssignment[] propertyAssignments
)
public:
ModelElement^ CreateElement(
    Guid domainClassId, 
    ... array<PropertyAssignment^>^ propertyAssignments
)
member CreateElement : 
        domainClassId:Guid * 
        propertyAssignments:PropertyAssignment[] -> ModelElement
public function CreateElement(
    domainClassId : Guid, 
    ... propertyAssignments : PropertyAssignment[]
) : ModelElement

Parameters

  • domainClassId
    Type: System.Guid

    The ID of the domain class of the object to be created.

Return Value

Type: Microsoft.VisualStudio.Modeling.ModelElement
A new ModelElement object.

.NET Framework Security

See Also

Reference

ElementFactory Class

CreateElement Overload

Microsoft.VisualStudio.Modeling Namespace