Share via


DomainModel.CreateElementLink Method

Definition

Creates an element link of specified type.

public:
 virtual Microsoft::VisualStudio::Modeling::ElementLink ^ CreateElementLink(Microsoft::VisualStudio::Modeling::Partition ^ partition, Type ^ elementLinkType, cli::array <Microsoft::VisualStudio::Modeling::RoleAssignment ^> ^ roleAssignments, cli::array <Microsoft::VisualStudio::Modeling::PropertyAssignment ^> ^ propertyAssignments);
public virtual Microsoft.VisualStudio.Modeling.ElementLink CreateElementLink (Microsoft.VisualStudio.Modeling.Partition partition, Type elementLinkType, Microsoft.VisualStudio.Modeling.RoleAssignment[] roleAssignments, Microsoft.VisualStudio.Modeling.PropertyAssignment[] propertyAssignments);
abstract member CreateElementLink : Microsoft.VisualStudio.Modeling.Partition * Type * Microsoft.VisualStudio.Modeling.RoleAssignment[] * Microsoft.VisualStudio.Modeling.PropertyAssignment[] -> Microsoft.VisualStudio.Modeling.ElementLink
override this.CreateElementLink : Microsoft.VisualStudio.Modeling.Partition * Type * Microsoft.VisualStudio.Modeling.RoleAssignment[] * Microsoft.VisualStudio.Modeling.PropertyAssignment[] -> Microsoft.VisualStudio.Modeling.ElementLink
Public Overridable Function CreateElementLink (partition As Partition, elementLinkType As Type, roleAssignments As RoleAssignment(), propertyAssignments As PropertyAssignment()) As ElementLink

Parameters

partition
Partition

Partition where element is to be created.

elementLinkType
Type

Element link type which belongs to this domain model.

roleAssignments
RoleAssignment[]

List of relationship role assignments for the new link.

propertyAssignments
PropertyAssignment[]

New element property assignments.

Returns

Created element link.

Applies to