This document is archived and information here might be outdated. Recommended version. |
The features in the geometric network with connectivity problems.
[Visual Basic .NET] Public Sub DetectNetworkErrors ( _ ByVal errorType As esriNetworkErrorType, _ ByVal AreaOfInterest As IEnvelope, _ ByVal selectionSets As ISet, _ ByRef problemSelectionSets As ISet _ )
[C#] public void DetectNetworkErrors ( esriNetworkErrorType errorType, IEnvelope AreaOfInterest, ISet selectionSets, ref ISet problemSelectionSets );
[C++]
HRESULT DetectNetworkErrors(
esriNetworkErrorType errorType,
IEnvelope* AreaOfInterest,
ISet* selectionSets,
ISet** problemSelectionSets
);
[C++]
Parameters errorType [in]
errorType is a parameter of type esriNetworkErrorType AreaOfInterest [in]
AreaOfInterest is a parameter of type IEnvelope* selectionSets [in]
selectionSets is a parameter of type ISet* problemSelectionSets [out]
problemSelectionSets is a parameter of type ISet**
The DetectNetworkErrors method is used to detect the different possible types of network connectivity and geometry problems. While the DetectNetworkErrors method will discover network features with inconsistent connectivity, it does not perform an exhaustive verification. The IGeometricNetworkConnectivity2::CheckandRepairConnectivity method performs a more exhaustive check for network inconsistencies.
The DetectNetworkErrors method takes a number of arguements, the first being the type of network error to detect. This arguement corresponds with a value from the esriNetworkErrorType enumeration. Use esriNETConnectivity to verify network connectivity and esriNETGeometry to verify network feature geometry.
The second argument is an IEnvelope object defining the area of interest, any feature within or intersecting the envelope will be verified. The third arguement is a selection set of features. If Nothing is supplied for an area of interest, the features in the selection set will be verified. Finally, any features identified as invalid will be returned in a selection set.