IEntitySite.GetAttachedItemsByRelationship<TEntity>(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
IReadOnlyCollection<TEntity>
A collection of items retrieved. It can throw MissingDataException.