Partager via


IEntitySite.GetAttachedItemsByRelationship<TEntity>(String) Method

Definition

Get attached items managed by the entity site.

public System.Collections.Generic.IReadOnlyCollection<TEntity> GetAttachedItemsByRelationship<TEntity> (string relationshipName) where TEntity : Microsoft.VisualStudio.ProjectSystem.Query.IEntity;
abstract member GetAttachedItemsByRelationship : string -> System.Collections.Generic.IReadOnlyCollection<'Entity (requires 'Entity :> Microsoft.VisualStudio.ProjectSystem.Query.IEntity)> (requires 'Entity :> Microsoft.VisualStudio.ProjectSystem.Query.IEntity)
Public Function GetAttachedItemsByRelationship(Of TEntity As IEntity) (relationshipName As String) As IReadOnlyCollection(Of TEntity)

Type Parameters

TEntity

Related entity type

Parameters

relationshipName
String

Relationship between this entity item and related items.

Returns

A collection of items retrieved. It can throw MissingDataException.

Applies to