Creates a new element link.
Namespace: Microsoft.VisualStudio.Modeling
Assembly: Microsoft.VisualStudio.Modeling.Sdk (in Microsoft.VisualStudio.Modeling.Sdk.dll)
Syntax
'宣言
Public Function CreateElementLink ( _
domainRelationship As DomainRelationshipInfo, _
propertyAssignments As PropertyAssignment(), _
ParamArray roleAssignments As RoleAssignment() _
) As ElementLink
'使用
Dim instance As ElementFactory
Dim domainRelationship As DomainRelationshipInfo
Dim propertyAssignments As PropertyAssignment()
Dim roleAssignments As RoleAssignment()
Dim returnValue As ElementLink
returnValue = instance.CreateElementLink(domainRelationship, _
propertyAssignments, roleAssignments)
public ElementLink CreateElementLink(
DomainRelationshipInfo domainRelationship,
PropertyAssignment[] propertyAssignments,
params RoleAssignment[] roleAssignments
)
public:
ElementLink^ CreateElementLink(
DomainRelationshipInfo^ domainRelationship,
array<PropertyAssignment^>^ propertyAssignments,
... array<RoleAssignment^>^ roleAssignments
)
public function CreateElementLink(
domainRelationship : DomainRelationshipInfo,
propertyAssignments : PropertyAssignment[],
... roleAssignments : RoleAssignment[]
) : ElementLink
Parameters
domainRelationship
Type: Microsoft.VisualStudio.Modeling.DomainRelationshipInfoThe 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.