ElementFactory.CreateElement Method (Guid)
Creates a new element instance of a specified type.
Namespace: Microsoft.VisualStudio.Modeling
Assembly: Microsoft.VisualStudio.Modeling.Sdk.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.10.0.dll)
Syntax
'Déclaration
Public Function CreateElement ( _
domainClassId As Guid _
) As ModelElement
public ModelElement CreateElement(
Guid domainClassId
)
public:
ModelElement^ CreateElement(
Guid domainClassId
)
member CreateElement :
domainClassId:Guid -> ModelElement
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.
.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.