ArcGIS Pro 2.7 API Reference Guide
GetAssociations(Element,AssociationType) Method

ArcGIS.Core.Data.UtilityNetwork Namespace > UtilityNetwork Class > GetAssociations Method : GetAssociations(Element,AssociationType) Method
The Element that represents the row whose associations are to be returned.
The AssociationType of associations to return.
Returns a list of Association objects of type AssociationType present in the geodatabase for a given row. This method must be called on the MCT. Use QueuedTask.Run
Syntax

Parameters

element
The Element that represents the row whose associations are to be returned.
associationType
The AssociationType of associations to return.

Return Value

A list of Association of type associationType if available. Otherwise, an empty list is returned.
Exceptions
ExceptionDescription
element is null.
A geodatabase-related exception has occurred.
Remarks
The method does not return a complete picture of connectivity; features that are connected by geometric coincidence are not returned. Note also that the list returned can contain associations that have not yet been validated and are therefore not yet included in the topological index.
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

UtilityNetwork Class
UtilityNetwork Members
Overload List