ArcGIS Pro 2.7 API Reference Guide
GetAssociationFeatures(Envelope,AssociationType) Method

ArcGIS.Core.Data.UtilityNetwork Namespace > UtilityNetwork Class > GetAssociationFeatures Method : GetAssociationFeatures(Envelope,AssociationType) Method
Specifies an ArcGIS.Core.Geometry.Envelope that defines the extent for which to return association information.
The type of associations to return.
Returns a list of AssociationFeatures that represent the associations that exist between features within the given extent, of the specified AssociationType. This method must be called on the MCT. Use QueuedTask.Run.
Syntax
Public Overloads Function GetAssociationFeatures( _
   ByVal extent As Envelope, _
   ByVal associationType As AssociationType _
) As IReadOnlyList(Of AssociationFeature)

Parameters

extent
Specifies an ArcGIS.Core.Geometry.Envelope that defines the extent for which to return association information.
associationType
The type of associations to return.

Return Value

A list of AssociationFeature objects.
Exceptions
ExceptionDescription
extent is null.
associationType is AssociationType.Containment.
A geodatabase-related exception has occurred.
Remarks
Only associations where both features are within the provided extent are returned. Only associations with the specified types are returned. This routine does not support containment associations with the current release.
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

UtilityNetwork Class
UtilityNetwork Members
Overload List