This document is archived and information here might be outdated.  Recommended version.


IGeometricNetworkErrorDetection.DeleteNetworkElements Method (ArcObjects .NET 10.6 SDK)
ArcObjects Library Reference (GeoDatabase)  

IGeometricNetworkErrorDetection.DeleteNetworkElements Method

Deletes the network elements associated with the specified network features.

[Visual Basic .NET]
Public Sub DeleteNetworkElements ( _
    ByVal selectionSets As ISet _
)
[C#]
public void DeleteNetworkElements (
    ISet selectionSets
);
[C++]
HRESULT DeleteNetworkElements(
  ISet* selectionSets
);
[C++]

Parameters selectionSets [in]
selectionSets is a parameter of type ISet*

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Description

The DeleteNetworkElements method takes an ISet of ISelectionSets. All of the network features contained in the various selection sets will have their network elements deleted from the logical network. The primary reason why one would want to do this is to correct the geometry of an edge feature that was loaded with invalid polyline geometry.  This method should be called on valid network features.

See Also

IGeometricNetworkErrorDetection Interface