CoreDesignSurfaceDomainModel::CreateElementLink Method (Partition^, Type^, array<RoleAssignment^>^, array<PropertyAssignment^>^)
Visual Studio 2015
Creates an element link of specified type.
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0.dll)
public: virtual ElementLink^ CreateElementLink( Partition^ partition, Type^ elementLinkType, array<RoleAssignment^>^ roleAssignments, array<PropertyAssignment^>^ propertyAssignments ) override sealed
Parameters
- partition
-
Type:
Microsoft.VisualStudio.Modeling::Partition^
Partition where element is to be created.
- elementLinkType
-
Type:
System::Type^
Element link type which belongs to this domain model.
- roleAssignments
-
Type:
array<Microsoft.VisualStudio.Modeling::RoleAssignment^>^
List of relationship role assignments for the new link.
- propertyAssignments
-
Type:
array<Microsoft.VisualStudio.Modeling::PropertyAssignment^>^
New element property assignments.
Return Value
Type: Microsoft.VisualStudio.Modeling::ElementLink^
Show: