ElementFactory.CreateElementLink Method (Guid, array<PropertyAssignment[], array<RoleAssignment )

Creates a new element link.

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

Syntax

'Declaration
Public Function CreateElementLink ( _
    domainRelationshipId As Guid, _
    propertyAssignments As PropertyAssignment(), _
    ParamArray roleAssignments As RoleAssignment() _
) As ElementLink
public ElementLink CreateElementLink(
    Guid domainRelationshipId,
    PropertyAssignment[] propertyAssignments,
    params RoleAssignment[] roleAssignments
)
public:
ElementLink^ CreateElementLink(
    Guid domainRelationshipId, 
    array<PropertyAssignment^>^ propertyAssignments, 
    ... array<RoleAssignment^>^ roleAssignments
)
member CreateElementLink : 
        domainRelationshipId:Guid * 
        propertyAssignments:PropertyAssignment[] * 
        roleAssignments:RoleAssignment[] -> ElementLink
public function CreateElementLink(
    domainRelationshipId : Guid, 
    propertyAssignments : PropertyAssignment[], 
    ... roleAssignments : RoleAssignment[]
) : ElementLink

Parameters

  • domainRelationshipId
    Type: Guid

    The ID of the domain relationship of the link to be created.

Return Value

Type: Microsoft.VisualStudio.Modeling.ElementLink
The element link.

.NET Framework Security

See Also

Reference

ElementFactory Class

CreateElementLink Overload

Microsoft.VisualStudio.Modeling Namespace