Freigeben über


CoreDesignSurfaceDomainModel.CreateElementLink Method

Definition

Creates an element link of specified type.

public:
 override 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 override sealed Microsoft.VisualStudio.Modeling.ElementLink CreateElementLink (Microsoft.VisualStudio.Modeling.Partition partition, Type elementLinkType, Microsoft.VisualStudio.Modeling.RoleAssignment[] roleAssignments, Microsoft.VisualStudio.Modeling.PropertyAssignment[] propertyAssignments);
override this.CreateElementLink : Microsoft.VisualStudio.Modeling.Partition * Type * Microsoft.VisualStudio.Modeling.RoleAssignment[] * Microsoft.VisualStudio.Modeling.PropertyAssignment[] -> Microsoft.VisualStudio.Modeling.ElementLink
Public Overrides NotOverridable 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