Click or drag to resize

PortalItemGetRelatedItemsAsync Method (IEnumerablePortalItemRelationship, PortalItemRelationshipDirection, CancellationToken)

Gets all related items with any of the specified relationships to this item.

Namespace:  Esri.ArcGISRuntime.Portal
Assembly:  Esri.ArcGISRuntime (in Esri.ArcGISRuntime.dll) Version: 100.11.0
Syntax
public Task<IEnumerable<PortalItem>> GetRelatedItemsAsync(
	IEnumerable<PortalItemRelationship> relationships,
	PortalItemRelationshipDirection direction,
	CancellationToken cancellationToken = null
)

Parameters

relationships
Type: System.Collections.GenericIEnumerablePortalItemRelationship
A collection of relationships.
direction
Type: Esri.ArcGISRuntime.PortalPortalItemRelationshipDirection
The direction of the relationships.
cancellationToken (Optional)
Type: System.ThreadingCancellationToken
A CancellationToken with which to cancel the operation if required.

Return Value

Type: TaskIEnumerablePortalItem
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.
See Also