Freigeben über


CoreDomainModel.CreateElementLink Method

Creates an element link of specified type.

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

Syntax

'Declaration
Public Overrides NotOverridable Function CreateElementLink ( _
    partition As Partition, _
    elementLinkType As Type, _
    roleAssignments As RoleAssignment(), _
    propertyAssignments As PropertyAssignment() _
) As ElementLink
public override sealed ElementLink CreateElementLink(
    Partition partition,
    Type elementLinkType,
    RoleAssignment[] roleAssignments,
    PropertyAssignment[] propertyAssignments
)
public:
virtual ElementLink^ CreateElementLink(
    Partition^ partition, 
    Type^ elementLinkType, 
    array<RoleAssignment^>^ roleAssignments, 
    array<PropertyAssignment^>^ propertyAssignments
) override sealed
abstract CreateElementLink : 
        partition:Partition * 
        elementLinkType:Type * 
        roleAssignments:RoleAssignment[] * 
        propertyAssignments:PropertyAssignment[] -> ElementLink 
override CreateElementLink : 
        partition:Partition * 
        elementLinkType:Type * 
        roleAssignments:RoleAssignment[] * 
        propertyAssignments:PropertyAssignment[] -> ElementLink 
public override final function CreateElementLink(
    partition : Partition, 
    elementLinkType : Type, 
    roleAssignments : RoleAssignment[], 
    propertyAssignments : PropertyAssignment[]
) : ElementLink

Parameters

  • elementLinkType
    Type: System.Type
    Element link type which belongs to this domain model.

Return Value

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

.NET Framework Security

See Also

Reference

CoreDomainModel Class

Microsoft.VisualStudio.Modeling Namespace