ArcGIS Pro 2.7 API Reference Guide
GetAssociations(Element) Method

ArcGIS.Core.Data.UtilityNetwork Namespace > UtilityNetwork Class > GetAssociations Method : GetAssociations(Element) Method
The Element that represents the row whose associations are to be returned.
Returns a list of Association objects present in the geodatabase for a given row. This method must be called on the MCT. Use QueuedTask.Run
Syntax
public IReadOnlyList<Association> GetAssociations( 
   Element element
)
Public Overloads Function GetAssociations( _
   ByVal element As Element _
) As IReadOnlyList(Of Association)

Parameters

element
The Element that represents the row whose associations are to be returned.

Return Value

A list of all the Association if available. Otherwise, an empty list is returned.
Exceptions
ExceptionDescription
element is null.
A geodatabase-related exception has occurred.
Remarks
This method returns a list of all of the associations present in a geodatabase. It can return a list of connectivity associations, containment associations, structural attachment associations, or all of the above. 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