ElementFactory.CreateElement Method (Guid)

Creates a new element instance of a specified type.

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

Syntax

'宣言
Public Function CreateElement ( _
    domainClassId As Guid _
) As ModelElement
'使用
Dim instance As ElementFactory
Dim domainClassId As Guid
Dim returnValue As ModelElement

returnValue = instance.CreateElement(domainClassId)
public ModelElement CreateElement(
    Guid domainClassId
)
public:
ModelElement^ CreateElement(
    Guid domainClassId
)
public function CreateElement(
    domainClassId : Guid
) : 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.

Permissions

See Also

Reference

ElementFactory Class

ElementFactory Members

CreateElement Overload

Microsoft.VisualStudio.Modeling Namespace