Show / Hide Table of Contents

Method CanAddAssociationAsync

CanAddAssociationAsync(ArcGISFeature, UtilityAssociationsFilter, CancellationToken)

Checks if a UtilityAssociation can be added between the provided ArcGISFeature and the Feature this element is part of.

Declaration
public Task<bool> CanAddAssociationAsync(ArcGISFeature feature, UtilityAssociationsFilter filter, CancellationToken cancellationToken = default)
Parameters
Type Name Description
ArcGISFeature feature

The ArcGISFeature participating in the association.

UtilityAssociationsFilter filter

The UtilityAssociationsFilter used to check the feature's role or function.

CancellationToken cancellationToken

A cancellation token that can be used to cancel the operation.

Returns
Type Description
Task<bool>

true if a UtilityAssociation can be added to the provided ArcGISFeature, false otherwise.

Remarks

Checks that all of the following conditions are met:

  • the feature belongs to the network source, asset type, and asset group defined in the provided UtilityAssociationsFilter
  • utility rules permit the use of the provided feature to create an association.
  • any expressions set on the element allow editing associations.
  • the current user has the necessary permissions.
See Also
CanAddAssociationAsync(UtilityAssociation)

Applies to

Platforms and versions
TargetVersions
.NET300.0 - 300.1
.NET Windows300.0 - 300.1
.NET Android300.0 - 300.1
.NET iOS300.0 - 300.1
In this article
Provide feedback
Back to top Copyright © 2025 Esri.