共用方式為


CoreDesignSurfaceDomainModel.CreateElementLink Method

Creates an element link of specified type.

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

Syntax

'宣告
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

.NET Framework Security

See Also

Reference

CoreDesignSurfaceDomainModel Class

Microsoft.VisualStudio.Modeling.Diagrams Namespace