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
System.Collections.Generic.IEnumerable<UtilityAssociation> associations

A collection of UtilityAssociation 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 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 - 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.