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 |
---|---|---|
Portal |
relationship | The relationship. |
Portal |
direction | The direction of the relationship. |
Cancellation |
cancellationToken | A Cancellation |
Returns
Type | Description |
---|---|
System. |
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 |
---|---|
.NET Standard 2.0 | 100.11 - 100.15 |
.NET 6.0 | 100.13 - 100.15 |
.NET 6.0 Windows | 100.13 - 100.15 |
.NET Framework | 100.11 - 100.15 |
.NET 5 | 100.11 - 100.12 |
.NET Core 3.1 | 100.11 - 100.12 |
Xamarin.Android | 100.11 - 100.15 |
Xamarin.iOS | 100.11 - 100.15 |
UWP | 100.11 - 100.14 |
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 |
---|---|---|
IEnumerable<Portal |
relationships | A collection of relationships. |
Portal |
direction | The direction of the relationships. |
Cancellation |
cancellationToken | A Cancellation |
Returns
Type | Description |
---|---|
System. |
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 |
---|---|
.NET Standard 2.0 | 100.11 - 100.15 |
.NET 6.0 | 100.13 - 100.15 |
.NET 6.0 Windows | 100.13 - 100.15 |
.NET Framework | 100.11 - 100.15 |
.NET 5 | 100.11 - 100.12 |
.NET Core 3.1 | 100.11 - 100.12 |
Xamarin.Android | 100.11 - 100.15 |
Xamarin.iOS | 100.11 - 100.15 |
UWP | 100.11 - 100.14 |