ElementFactory.CreateElementLink Method (DomainRelationshipInfo, array<PropertyAssignment[], 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
'Dichiarazione
Public Function CreateElementLink ( _
domainRelationship As DomainRelationshipInfo, _
propertyAssignments As PropertyAssignment(), _
ParamArray roleAssignments As RoleAssignment() _
) As ElementLink
public ElementLink CreateElementLink(
DomainRelationshipInfo domainRelationship,
PropertyAssignment[] propertyAssignments,
params RoleAssignment[] roleAssignments
)
public:
ElementLink^ CreateElementLink(
DomainRelationshipInfo^ domainRelationship,
array<PropertyAssignment^>^ propertyAssignments,
... array<RoleAssignment^>^ roleAssignments
)
member CreateElementLink :
domainRelationship:DomainRelationshipInfo *
propertyAssignments:PropertyAssignment[] *
roleAssignments:RoleAssignment[] -> ElementLink
public function CreateElementLink(
domainRelationship : DomainRelationshipInfo,
propertyAssignments : PropertyAssignment[],
... roleAssignments : RoleAssignment[]
) : ElementLink
Parameters
- domainRelationship
Type: Microsoft.VisualStudio.Modeling.DomainRelationshipInfo
The domain relationship of the link to be created.
- propertyAssignments
Type: array<Microsoft.VisualStudio.Modeling.PropertyAssignment[]
An array of initial attribute value assignments.
- 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.