ArcGIS Pro 2.6 API Reference Guide
GetAssociationFeatures(Envelope) Method

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.
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
)
Public Overloads Function GetAssociationFeatures( _
   ByVal extent As Envelope _
) As IReadOnlyList(Of AssociationFeature)

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.
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 10, Windows 8.1, Windows 7

See Also

Reference

UtilityNetwork Class
UtilityNetwork Members
Overload List