ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Core.Data.UtilityNetwork Namespace / UtilityNetwork Class / GetAssociations Method / GetAssociations(Element) Method
The Element that represents the row whose associations are to be returned.

In This Topic
    GetAssociations(Element) Method
    In This Topic
    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.
    This method or property must be called within the lambda passed to QueuedTask.Run
    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 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also