Click or drag to resize

PortalItemGetRelatedItemsAsync Method (PortalItemRelationship, PortalItemRelationshipDirection, CancellationToken)

Gets all related items with the specified relationship to this item.

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


Type: Esri.ArcGISRuntime.PortalPortalItemRelationship
The relationship.
Type: Esri.ArcGISRuntime.PortalPortalItemRelationshipDirection
The direction of the relationsip.
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 relationship.
See Also