共用方式為


DomainRoleInfo.GetElementLinksToElement Method

Definition

Overloads

GetElementLinksToElement(ModelElement, ModelElement, Boolean)

Get all element links between the given source/target elements, where the source element plays this role.

GetElementLinksToElement(ModelElement, ModelElement)

Get all element links between the given source/target elements, where the source element plays this role. Including links attached to derived role players.

GetElementLinksToElement<T>(ModelElement, ModelElement)

Get all element links between the given source/target elements, where the source element plays this role. Including links attached to derived role players.

GetElementLinksToElement<T>(ModelElement, ModelElement, Boolean)

Get all element links between the given source/target elements, where the source element plays this role.

GetElementLinksToElement(ModelElement, ModelElement, Boolean)

Get all element links between the given source/target elements, where the source element plays this role.

public:
 System::Collections::ObjectModel::ReadOnlyCollection<Microsoft::VisualStudio::Modeling::ElementLink ^> ^ GetElementLinksToElement(Microsoft::VisualStudio::Modeling::ModelElement ^ sourceRolePlayerElement, Microsoft::VisualStudio::Modeling::ModelElement ^ targetRolePlayerElement, bool excludeDerivedRolesLinks);
public System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.VisualStudio.Modeling.ElementLink> GetElementLinksToElement (Microsoft.VisualStudio.Modeling.ModelElement sourceRolePlayerElement, Microsoft.VisualStudio.Modeling.ModelElement targetRolePlayerElement, bool excludeDerivedRolesLinks);
member this.GetElementLinksToElement : Microsoft.VisualStudio.Modeling.ModelElement * Microsoft.VisualStudio.Modeling.ModelElement * bool -> System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.VisualStudio.Modeling.ElementLink>
Public Function GetElementLinksToElement (sourceRolePlayerElement As ModelElement, targetRolePlayerElement As ModelElement, excludeDerivedRolesLinks As Boolean) As ReadOnlyCollection(Of ElementLink)

Parameters

sourceRolePlayerElement
ModelElement

Source element playing this role.

targetRolePlayerElement
ModelElement

Target element.

excludeDerivedRolesLinks
Boolean

Whether to exclude links attached to derived role players.

Returns

Applies to

GetElementLinksToElement(ModelElement, ModelElement)

Get all element links between the given source/target elements, where the source element plays this role. Including links attached to derived role players.

public:
 System::Collections::ObjectModel::ReadOnlyCollection<Microsoft::VisualStudio::Modeling::ElementLink ^> ^ GetElementLinksToElement(Microsoft::VisualStudio::Modeling::ModelElement ^ sourceRolePlayerElement, Microsoft::VisualStudio::Modeling::ModelElement ^ targetRolePlayerElement);
public System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.VisualStudio.Modeling.ElementLink> GetElementLinksToElement (Microsoft.VisualStudio.Modeling.ModelElement sourceRolePlayerElement, Microsoft.VisualStudio.Modeling.ModelElement targetRolePlayerElement);
member this.GetElementLinksToElement : Microsoft.VisualStudio.Modeling.ModelElement * Microsoft.VisualStudio.Modeling.ModelElement -> System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.VisualStudio.Modeling.ElementLink>
Public Function GetElementLinksToElement (sourceRolePlayerElement As ModelElement, targetRolePlayerElement As ModelElement) As ReadOnlyCollection(Of ElementLink)

Parameters

sourceRolePlayerElement
ModelElement

Source element playing this role.

targetRolePlayerElement
ModelElement

Target element.

Returns

Applies to

GetElementLinksToElement<T>(ModelElement, ModelElement)

Get all element links between the given source/target elements, where the source element plays this role. Including links attached to derived role players.

public:
generic <typename T>
 where T : Microsoft::VisualStudio::Modeling::ElementLink System::Collections::ObjectModel::ReadOnlyCollection<T> ^ GetElementLinksToElement(Microsoft::VisualStudio::Modeling::ModelElement ^ sourceRolePlayerElement, Microsoft::VisualStudio::Modeling::ModelElement ^ targetRolePlayerElement);
public System.Collections.ObjectModel.ReadOnlyCollection<T> GetElementLinksToElement<T> (Microsoft.VisualStudio.Modeling.ModelElement sourceRolePlayerElement, Microsoft.VisualStudio.Modeling.ModelElement targetRolePlayerElement) where T : Microsoft.VisualStudio.Modeling.ElementLink;
member this.GetElementLinksToElement : Microsoft.VisualStudio.Modeling.ModelElement * Microsoft.VisualStudio.Modeling.ModelElement -> System.Collections.ObjectModel.ReadOnlyCollection<'T (requires 'T :> Microsoft.VisualStudio.Modeling.ElementLink)> (requires 'T :> Microsoft.VisualStudio.Modeling.ElementLink)
Public Function GetElementLinksToElement(Of T As ElementLink) (sourceRolePlayerElement As ModelElement, targetRolePlayerElement As ModelElement) As ReadOnlyCollection(Of T)

Type Parameters

T

Type of link.

Parameters

sourceRolePlayerElement
ModelElement

Source element playing this role.

targetRolePlayerElement
ModelElement

Target element.

Returns

Applies to

GetElementLinksToElement<T>(ModelElement, ModelElement, Boolean)

Get all element links between the given source/target elements, where the source element plays this role.

public:
generic <typename T>
 where T : Microsoft::VisualStudio::Modeling::ElementLink System::Collections::ObjectModel::ReadOnlyCollection<T> ^ GetElementLinksToElement(Microsoft::VisualStudio::Modeling::ModelElement ^ sourceRolePlayerElement, Microsoft::VisualStudio::Modeling::ModelElement ^ targetRolePlayerElement, bool excludeDerivedRolesLinks);
public System.Collections.ObjectModel.ReadOnlyCollection<T> GetElementLinksToElement<T> (Microsoft.VisualStudio.Modeling.ModelElement sourceRolePlayerElement, Microsoft.VisualStudio.Modeling.ModelElement targetRolePlayerElement, bool excludeDerivedRolesLinks) where T : Microsoft.VisualStudio.Modeling.ElementLink;
member this.GetElementLinksToElement : Microsoft.VisualStudio.Modeling.ModelElement * Microsoft.VisualStudio.Modeling.ModelElement * bool -> System.Collections.ObjectModel.ReadOnlyCollection<'T (requires 'T :> Microsoft.VisualStudio.Modeling.ElementLink)> (requires 'T :> Microsoft.VisualStudio.Modeling.ElementLink)
Public Function GetElementLinksToElement(Of T As ElementLink) (sourceRolePlayerElement As ModelElement, targetRolePlayerElement As ModelElement, excludeDerivedRolesLinks As Boolean) As ReadOnlyCollection(Of T)

Type Parameters

T

Type of link.

Parameters

sourceRolePlayerElement
ModelElement

Source element playing this role.

targetRolePlayerElement
ModelElement

Target element.

excludeDerivedRolesLinks
Boolean

Whether to exclude links attached to derived role players.

Returns

Applies to