Show / Hide Table of Contents

Method DeleteAssociationsAsync

DeleteAssociationsAsync(IEnumerable<UtilityAssociation>)

Deletes a collection of associations from this utility network.

Declaration
public Task DeleteAssociationsAsync(IEnumerable<UtilityAssociation> associations)
Parameters
Type Name Description
IEnumerable<UtilityAssociation> associations

A collection of UtilityAssociation to delete.

Returns
Type Description
Task

A Task with no return value.

One of the following exceptions may be set:

  • InvalidOperationException, if this method is called on a utility network schema version that does not support the association type.
  • GeodatabaseClosedException, if this method is called after the geodatabase is closed.
  • ArgumentException, when the specified collection is empty or any association includes an element that is not accessible or does not belong in this utility network.
Remarks

Deleting these associations may also update the features that participate in these associations.

Use CanDeleteAssociations() to determine if you can successfully delete associations.

This method requires that the association elements are accessible. Use IsValid to check feature accessibility to ensure it has not been filtered out.

See Also
DeleteAssociationAsync(UtilityAssociation)
AddAssociationAsync(UtilityAssociation)

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0200.5 - 200.8
.NET200.5 - 300.0
.NET Windows200.5 - 300.0
.NET Android200.5 - 300.0
.NET iOS200.5 - 300.0
.NET Framework200.5 - 200.8
UWP200.5 - 200.8
In this article
Provide feedback
Back to top Copyright © 2025 Esri.