ArcGIS Pro 3.2 API Reference Guide
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.

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

    ArcGIS Pro version: 3 or higher.
    See Also