ElementFactory.CreateElementLink Method (Guid, Boolean, array<RoleAssignment )
Creates a new element link.
Namespace: Microsoft.VisualStudio.Modeling
Assembly: Microsoft.VisualStudio.Modeling.Sdk.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.10.0.dll)
Syntax
'Déclaration
Public Function CreateElementLink ( _
domainRelationshipId As Guid, _
bypassDemandLoading As Boolean, _
ParamArray roleAssignments As RoleAssignment() _
) As ElementLink
public ElementLink CreateElementLink(
Guid domainRelationshipId,
bool bypassDemandLoading,
params RoleAssignment[] roleAssignments
)
public:
ElementLink^ CreateElementLink(
Guid domainRelationshipId,
bool bypassDemandLoading,
... array<RoleAssignment^>^ roleAssignments
)
member CreateElementLink :
domainRelationshipId:Guid *
bypassDemandLoading:bool *
roleAssignments:RoleAssignment[] -> ElementLink
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.
- roleAssignments
Type: array<Microsoft.VisualStudio.Modeling.RoleAssignment[]
An array of the elements playing roles in the domain relationship instance.
Return Value
Type: Microsoft.VisualStudio.Modeling.ElementLink
The element link.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.