共用方式為


ElementFactory.CreateElementLink Method

Definition

Overloads

CreateElementLink(DomainRelationshipInfo, RoleAssignment[])

Creates a new element link.

CreateElementLink(Guid, RoleAssignment[])

Creates a new element link.

CreateElementLink(DomainRelationshipInfo, PropertyAssignment[], RoleAssignment[])

Creates a new element link.

CreateElementLink(DomainRelationshipInfo, Boolean, RoleAssignment[])

Creates a new element link.

CreateElementLink(Guid, PropertyAssignment[], RoleAssignment[])

Creates a new element link.

CreateElementLink(Guid, Boolean, RoleAssignment[])

Creates a new element link.

CreateElementLink(DomainRelationshipInfo, RoleAssignment[])

Creates a new element link.

public:
 Microsoft::VisualStudio::Modeling::ElementLink ^ CreateElementLink(Microsoft::VisualStudio::Modeling::DomainRelationshipInfo ^ domainRelationship, ... cli::array <Microsoft::VisualStudio::Modeling::RoleAssignment ^> ^ roleAssignments);
public Microsoft.VisualStudio.Modeling.ElementLink CreateElementLink (Microsoft.VisualStudio.Modeling.DomainRelationshipInfo domainRelationship, params Microsoft.VisualStudio.Modeling.RoleAssignment[] roleAssignments);
member this.CreateElementLink : Microsoft.VisualStudio.Modeling.DomainRelationshipInfo * Microsoft.VisualStudio.Modeling.RoleAssignment[] -> Microsoft.VisualStudio.Modeling.ElementLink
Public Function CreateElementLink (domainRelationship As DomainRelationshipInfo, ParamArray roleAssignments As RoleAssignment()) As ElementLink

Parameters

domainRelationship
DomainRelationshipInfo

Domain relationship of the link to be created.

roleAssignments
RoleAssignment[]

The elements playing roles in the domain relationship instance

Returns

The new element link

Applies to

CreateElementLink(Guid, RoleAssignment[])

Creates a new element link.

public:
 Microsoft::VisualStudio::Modeling::ElementLink ^ CreateElementLink(Guid domainRelationshipId, ... cli::array <Microsoft::VisualStudio::Modeling::RoleAssignment ^> ^ roleAssignments);
public Microsoft.VisualStudio.Modeling.ElementLink CreateElementLink (Guid domainRelationshipId, params Microsoft.VisualStudio.Modeling.RoleAssignment[] roleAssignments);
member this.CreateElementLink : Guid * Microsoft.VisualStudio.Modeling.RoleAssignment[] -> Microsoft.VisualStudio.Modeling.ElementLink
Public Function CreateElementLink (domainRelationshipId As Guid, ParamArray roleAssignments As RoleAssignment()) As ElementLink

Parameters

domainRelationshipId
Guid

Domain relationship ID of the link to be created.

roleAssignments
RoleAssignment[]

The elements playing roles in the domain relationship instance

Returns

The new element link

Applies to

CreateElementLink(DomainRelationshipInfo, PropertyAssignment[], RoleAssignment[])

Creates a new element link.

public:
 Microsoft::VisualStudio::Modeling::ElementLink ^ CreateElementLink(Microsoft::VisualStudio::Modeling::DomainRelationshipInfo ^ domainRelationship, cli::array <Microsoft::VisualStudio::Modeling::PropertyAssignment ^> ^ propertyAssignments, ... cli::array <Microsoft::VisualStudio::Modeling::RoleAssignment ^> ^ roleAssignments);
public Microsoft.VisualStudio.Modeling.ElementLink CreateElementLink (Microsoft.VisualStudio.Modeling.DomainRelationshipInfo domainRelationship, Microsoft.VisualStudio.Modeling.PropertyAssignment[] propertyAssignments, params Microsoft.VisualStudio.Modeling.RoleAssignment[] roleAssignments);
member this.CreateElementLink : Microsoft.VisualStudio.Modeling.DomainRelationshipInfo * Microsoft.VisualStudio.Modeling.PropertyAssignment[] * Microsoft.VisualStudio.Modeling.RoleAssignment[] -> Microsoft.VisualStudio.Modeling.ElementLink
Public Function CreateElementLink (domainRelationship As DomainRelationshipInfo, propertyAssignments As PropertyAssignment(), ParamArray roleAssignments As RoleAssignment()) As ElementLink

Parameters

domainRelationship
DomainRelationshipInfo

Domain relationship of the link to be created.

propertyAssignments
PropertyAssignment[]

Initial attribute value assignments

roleAssignments
RoleAssignment[]

The elements playing roles in the domain relationship instance

Returns

The new element link

Applies to

CreateElementLink(DomainRelationshipInfo, Boolean, RoleAssignment[])

Creates a new element link.

public:
 Microsoft::VisualStudio::Modeling::ElementLink ^ CreateElementLink(Microsoft::VisualStudio::Modeling::DomainRelationshipInfo ^ domainRelationship, bool bypassDemandLoading, ... cli::array <Microsoft::VisualStudio::Modeling::RoleAssignment ^> ^ roleAssignments);
public Microsoft.VisualStudio.Modeling.ElementLink CreateElementLink (Microsoft.VisualStudio.Modeling.DomainRelationshipInfo domainRelationship, bool bypassDemandLoading, params Microsoft.VisualStudio.Modeling.RoleAssignment[] roleAssignments);
member this.CreateElementLink : Microsoft.VisualStudio.Modeling.DomainRelationshipInfo * bool * Microsoft.VisualStudio.Modeling.RoleAssignment[] -> Microsoft.VisualStudio.Modeling.ElementLink
Public Function CreateElementLink (domainRelationship As DomainRelationshipInfo, bypassDemandLoading As Boolean, ParamArray roleAssignments As RoleAssignment()) As ElementLink

Parameters

domainRelationship
DomainRelationshipInfo

Domain relationship of the link to be created.

bypassDemandLoading
Boolean

Whether to bypass demand loading

roleAssignments
RoleAssignment[]

The elements playing roles in the domain relationship instance

Returns

The new element link

Applies to

CreateElementLink(Guid, PropertyAssignment[], RoleAssignment[])

Creates a new element link.

public:
 Microsoft::VisualStudio::Modeling::ElementLink ^ CreateElementLink(Guid domainRelationshipId, cli::array <Microsoft::VisualStudio::Modeling::PropertyAssignment ^> ^ propertyAssignments, ... cli::array <Microsoft::VisualStudio::Modeling::RoleAssignment ^> ^ roleAssignments);
public Microsoft.VisualStudio.Modeling.ElementLink CreateElementLink (Guid domainRelationshipId, Microsoft.VisualStudio.Modeling.PropertyAssignment[] propertyAssignments, params Microsoft.VisualStudio.Modeling.RoleAssignment[] roleAssignments);
member this.CreateElementLink : Guid * Microsoft.VisualStudio.Modeling.PropertyAssignment[] * Microsoft.VisualStudio.Modeling.RoleAssignment[] -> Microsoft.VisualStudio.Modeling.ElementLink
Public Function CreateElementLink (domainRelationshipId As Guid, propertyAssignments As PropertyAssignment(), ParamArray roleAssignments As RoleAssignment()) As ElementLink

Parameters

domainRelationshipId
Guid

Domain relationship ID of the link to be created.

propertyAssignments
PropertyAssignment[]

Initial attribute value assignments

roleAssignments
RoleAssignment[]

The elements playing roles in the domain relationship instance

Returns

The new element link

Applies to

CreateElementLink(Guid, Boolean, RoleAssignment[])

Creates a new element link.

public:
 Microsoft::VisualStudio::Modeling::ElementLink ^ CreateElementLink(Guid domainRelationshipId, bool bypassDemandLoading, ... cli::array <Microsoft::VisualStudio::Modeling::RoleAssignment ^> ^ roleAssignments);
public Microsoft.VisualStudio.Modeling.ElementLink CreateElementLink (Guid domainRelationshipId, bool bypassDemandLoading, params Microsoft.VisualStudio.Modeling.RoleAssignment[] roleAssignments);
member this.CreateElementLink : Guid * bool * Microsoft.VisualStudio.Modeling.RoleAssignment[] -> Microsoft.VisualStudio.Modeling.ElementLink
Public Function CreateElementLink (domainRelationshipId As Guid, bypassDemandLoading As Boolean, ParamArray roleAssignments As RoleAssignment()) As ElementLink

Parameters

domainRelationshipId
Guid

Domain relationship ID of the link to be created.

bypassDemandLoading
Boolean

Whether to bypass demand loading

roleAssignments
RoleAssignment[]

The elements playing roles in the domain relationship instance

Returns

The new element link

Applies to