Compartir a través de


DomainRoleInfo.GetElementLinks Method

Definition

Overloads

GetElementLinks(ModelElement)

Gets element links where given element plays this role.

GetElementLinks(ModelElement, Boolean)

Gets element links where given element plays this role.

GetElementLinks<T>(ModelElement)

Gets element links where given element plays this role.

GetElementLinks<T>(ModelElement, Boolean)

Gets element links where given element plays this role.

GetElementLinks<T>(ModelElement, Guid)

Gets element links where given element plays a given role.

GetElementLinks(ModelElement)

Gets element links where given element plays this role.

public:
 System::Collections::ObjectModel::ReadOnlyCollection<Microsoft::VisualStudio::Modeling::ElementLink ^> ^ GetElementLinks(Microsoft::VisualStudio::Modeling::ModelElement ^ rolePlayerElement);
[System.Diagnostics.DebuggerStepThrough]
public System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.VisualStudio.Modeling.ElementLink> GetElementLinks (Microsoft.VisualStudio.Modeling.ModelElement rolePlayerElement);
[<System.Diagnostics.DebuggerStepThrough>]
member this.GetElementLinks : Microsoft.VisualStudio.Modeling.ModelElement -> System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.VisualStudio.Modeling.ElementLink>
Public Function GetElementLinks (rolePlayerElement As ModelElement) As ReadOnlyCollection(Of ElementLink)

Parameters

rolePlayerElement
ModelElement

Element playing this role.

Returns

Attributes

Applies to

GetElementLinks(ModelElement, Boolean)

Gets element links where given element plays this role.

public:
 System::Collections::ObjectModel::ReadOnlyCollection<Microsoft::VisualStudio::Modeling::ElementLink ^> ^ GetElementLinks(Microsoft::VisualStudio::Modeling::ModelElement ^ rolePlayerElement, bool excludeDerivedRolesLinks);
[System.Diagnostics.DebuggerStepThrough]
public System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.VisualStudio.Modeling.ElementLink> GetElementLinks (Microsoft.VisualStudio.Modeling.ModelElement rolePlayerElement, bool excludeDerivedRolesLinks);
[<System.Diagnostics.DebuggerStepThrough>]
member this.GetElementLinks : Microsoft.VisualStudio.Modeling.ModelElement * bool -> System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.VisualStudio.Modeling.ElementLink>
Public Function GetElementLinks (rolePlayerElement As ModelElement, excludeDerivedRolesLinks As Boolean) As ReadOnlyCollection(Of ElementLink)

Parameters

rolePlayerElement
ModelElement

Element playing this role.

excludeDerivedRolesLinks
Boolean

Whether to exclude links attached to derived role players.

Returns

Attributes

Applies to

Gets element links where given element plays this role.

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

Type Parameters

T

Type of link.

Parameters

rolePlayerElement
ModelElement

Element playing this role.

Returns

Applies to

Gets element links where given element plays this role.

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

Type Parameters

T

Type of link.

Parameters

rolePlayerElement
ModelElement

Element playing this role.

excludeDerivedRolesLinks
Boolean

Whether to exclude links attached to derived role players.

Returns

Applies to

Gets element links where given element plays a given role.

public:
generic <typename T>
 where T : Microsoft::VisualStudio::Modeling::ElementLink static System::Collections::ObjectModel::ReadOnlyCollection<T> ^ GetElementLinks(Microsoft::VisualStudio::Modeling::ModelElement ^ rolePlayerElement, Guid domainRoleId);
public static System.Collections.ObjectModel.ReadOnlyCollection<T> GetElementLinks<T> (Microsoft.VisualStudio.Modeling.ModelElement rolePlayerElement, Guid domainRoleId) where T : Microsoft.VisualStudio.Modeling.ElementLink;
static member GetElementLinks : Microsoft.VisualStudio.Modeling.ModelElement * Guid -> System.Collections.ObjectModel.ReadOnlyCollection<'T (requires 'T :> Microsoft.VisualStudio.Modeling.ElementLink)> (requires 'T :> Microsoft.VisualStudio.Modeling.ElementLink)
Public Shared Function GetElementLinks(Of T As ElementLink) (rolePlayerElement As ModelElement, domainRoleId As Guid) As ReadOnlyCollection(Of T)

Type Parameters

T

Type of link.

Parameters

rolePlayerElement
ModelElement

Element playing the role.

domainRoleId
Guid

Role played by the element.

Returns

Applies to