Show / Hide Table of Contents

Method DeleteAssociationAsync

DeleteAssociationAsync(UtilityAssociation)

Deletes an association from this utility network.

Declaration
public Task DeleteAssociationAsync(UtilityAssociation association)
Parameters
Type Name Description
UtilityAssociation association

The association to delete.

Returns
Type Description
System.Threading.Tasks.Task

A System.Threading.Tasks.Task that has no return value.

One of the following exceptions may be set on the returned System.Threading.Tasks.Task:

  • System.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.
  • System.ArgumentException, when the specified association includes an element that is not accessible or does not belong in this utility network.

Remarks

Deleting an association may also update the features that participate in the association.

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
DeleteAssociationsAsync(IEnumerable<UtilityAssociation>)
AddAssociationAsync(UtilityAssociation)

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0200.5 - 200.8
.NET200.5 - 200.8
.NET Windows200.5 - 200.8
.NET Android200.5 - 200.8
.NET iOS200.5 - 200.8
.NET Framework200.5 - 200.8
UWP200.5 - 200.8
In This Article
Back to top Copyright © 2022 Esri.