ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Core.Data.UtilityNetwork Namespace / UtilityNetwork Class / GetAssociationFeatures Method / GetAssociationFeatures(Envelope) Method
Specifies an ArcGIS.Core.Geometry.Envelope that defines the extent for which to return association information.
Version

GetAssociationFeatures(Envelope) Method
Returns a list of AssociationFeatures that represent the associations that exist between features within the given extent. This method must be called on the MCT. Use QueuedTask.Run.
Syntax
public IReadOnlyList<AssociationFeature> GetAssociationFeatures( 
   Envelope extent
)

Parameters

extent
Specifies an ArcGIS.Core.Geometry.Envelope that defines the extent for which to return association information.

Return Value

A list of AssociationFeature objects.
Exceptions
ExceptionDescription
extent is null.
A geodatabase-related exception has occurred.
This method or property must be called within the lambda passed to QueuedTask.Run
Remarks
Only associations where both features are within the provided extent are returned. All supported association types are returned. This routine does not support containment associations with the current release.
Requirements

Target Platforms: Windows 11, Windows 10

ArcGIS Pro version: 3 or higher.
See Also