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

Creates a new element link.

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

Syntax

'Declaration
Public Function CreateElementLink ( _
    domainRelationshipId As Guid, _
    bypassDemandLoading As Boolean, _
    ParamArray roleAssignments As RoleAssignment() _
) As ElementLink
'Usage
Dim instance As ElementFactory 
Dim domainRelationshipId As Guid 
Dim bypassDemandLoading As Boolean 
Dim roleAssignments As RoleAssignment()
Dim returnValue As ElementLink 

returnValue = instance.CreateElementLink(domainRelationshipId, _
    bypassDemandLoading, roleAssignments)
public ElementLink CreateElementLink(
    Guid domainRelationshipId,
    bool bypassDemandLoading,
    params RoleAssignment[] roleAssignments
)
public:
ElementLink^ CreateElementLink(
    Guid domainRelationshipId, 
    bool bypassDemandLoading, 
    ... array<RoleAssignment^>^ roleAssignments
)
public function CreateElementLink(
    domainRelationshipId : Guid, 
    bypassDemandLoading : boolean, 
    ... roleAssignments : RoleAssignment[]
) : ElementLink

Parameters

  • domainRelationshipId
    Type: System.Guid

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

  • bypassDemandLoading
    Type: System.Boolean

    true to bypass demand loading; otherwise, false.

Return Value

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

.NET Framework Security

See Also

Reference

ElementFactory Class

ElementFactory Members

CreateElementLink Overload

Microsoft.VisualStudio.Modeling Namespace