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

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

    ArcGIS Pro version: 3 or higher.
    See Also