Creates a new element link.
Namespace: Microsoft.VisualStudio.Modeling
Assembly: Microsoft.VisualStudio.Modeling.Sdk (in Microsoft.VisualStudio.Modeling.Sdk.dll)
Syntax
'宣言
Public Function CreateElementLink ( _
domainRelationshipId As Guid, _
propertyAssignments As PropertyAssignment(), _
ParamArray roleAssignments As RoleAssignment() _
) As ElementLink
'使用
Dim instance As ElementFactory
Dim domainRelationshipId As Guid
Dim propertyAssignments As PropertyAssignment()
Dim roleAssignments As RoleAssignment()
Dim returnValue As ElementLink
returnValue = instance.CreateElementLink(domainRelationshipId, _
propertyAssignments, roleAssignments)
public ElementLink CreateElementLink(
Guid domainRelationshipId,
PropertyAssignment[] propertyAssignments,
params RoleAssignment[] roleAssignments
)
public:
ElementLink^ CreateElementLink(
Guid domainRelationshipId,
array<PropertyAssignment^>^ propertyAssignments,
... array<RoleAssignment^>^ roleAssignments
)
public function CreateElementLink(
domainRelationshipId : Guid,
propertyAssignments : PropertyAssignment[],
... roleAssignments : RoleAssignment[]
) : ElementLink
Parameters
domainRelationshipId
Type: System.GuidThe ID of the domain relationship of the link to be created.
propertyAssignments
Type: []An array of initial attribute value assignments.
roleAssignments
Type: []An array of the elements playing roles in the domain relationship instance.
Return Value
Type: Microsoft.VisualStudio.Modeling.ElementLink
The element link.
Permissions
- 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.