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 = default(CancellationToken))Parameters
| Type | Name | Description | 
|---|---|---|
| PortalItemRelationship | relationship | The relationship. | 
| PortalItemRelationshipDirection | direction | The direction of the relationship. | 
| System.Threading.CancellationToken | cancellationToken | A System.Threading.CancellationToken with which to cancel the operation if required. | 
Returns
| Type | Description | 
|---|---|
| System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<PortalItem>> | A task that represents the asynchronous get operation. The value of the task result contains a collection of PortalItem objects that match the specified relationship. | 
Applies to
Platforms and versions
| Target | Versions | 
|---|---|
| .NET Standard 2.0 | 100.11 - 200.8 | 
| .NET | 100.13 - 200.8 | 
| .NET Windows | 100.13 - 200.8 | 
| .NET Android | 200.2 - 200.8 | 
| .NET iOS | 200.0 - 200.8 | 
| .NET Framework | 100.11 - 200.8 | 
| Xamarin.Android | 100.11 - 100.14 | 
| Xamarin.iOS | 100.11 - 100.15 | 
| UWP | 100.11 - 200.8 | 
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 = default(CancellationToken))Parameters
| Type | Name | Description | 
|---|---|---|
| System.Collections.Generic.IEnumerable<PortalItemRelationship> | relationships | A collection of relationships. | 
| PortalItemRelationshipDirection | direction | The direction of the relationships. | 
| System.Threading.CancellationToken | cancellationToken | A System.Threading.CancellationToken with which to cancel the operation if required. | 
Returns
| Type | Description | 
|---|---|
| System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<PortalItem>> | A task that represents the asynchronous get operation. The value of the task result contains a collection of PortalItem objects that match the specified relationships. | 
Applies to
Platforms and versions
| Target | Versions | 
|---|---|
| .NET Standard 2.0 | 100.11 - 200.8 | 
| .NET | 100.13 - 200.8 | 
| .NET Windows | 100.13 - 200.8 | 
| .NET Android | 200.2 - 200.8 | 
| .NET iOS | 200.0 - 200.8 | 
| .NET Framework | 100.11 - 200.8 | 
| Xamarin.Android | 100.11 - 100.14 | 
| Xamarin.iOS | 100.11 - 100.15 | 
| UWP | 100.11 - 200.8 |