Method GetRelatedItemsAsync
GetRelatedItemsAsync(PortalItemRelationship, PortalItemRelationshipDirection, CancellationToken)
Gets all related items with the specified relationship to this item.
Declaration
public async Task<IEnumerable<PortalItem>> GetRelatedItemsAsync(PortalItemRelationship relationship, PortalItemRelationshipDirection direction, CancellationToken cancellationToken = null)
Parameters
Type | Name | Description |
---|---|---|
Portal |
relationship | The relationship. |
Portal |
direction | The direction of the relationship. |
Cancellation |
cancellationToken | A |
Returns
Type | Description |
---|---|
Task<IEnumerable<Portal |
A task that represents the asynchronous get operation. The value of the task result
contains a collection of Portal |
Applies to
Platforms and versions
Target | Versions |
---|---|
UWP | 100.15 |
GetRelatedItemsAsync(IEnumerable<PortalItemRelationship>, PortalItemRelationshipDirection, CancellationToken)
Gets all related items with any of the specified relationships to this item.
Declaration
public async Task<IEnumerable<PortalItem>> GetRelatedItemsAsync(IEnumerable<PortalItemRelationship> relationships, PortalItemRelationshipDirection direction, CancellationToken cancellationToken = null)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<Portal |
relationships | A collection of relationships. |
Portal |
direction | The direction of the relationships. |
Cancellation |
cancellationToken | A |
Returns
Type | Description |
---|---|
Task<IEnumerable<Portal |
A task that represents the asynchronous get operation. The value of the task result
contains a collection of Portal |
Applies to
Platforms and versions
Target | Versions |
---|---|
UWP | 100.15 |