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


INetElements.IsValidElement Method (ArcObjects .NET 10.6 SDK)
ArcObjects Library Reference (GeoDatabase)  

INetElements.IsValidElement Method

Returns whether the specified element is part of the network.

[Visual Basic .NET]
Public Function IsValidElement ( _
    ByVal EID As Integer, _
    ByVal ElementType As esriElementType _
) As Boolean
[C#]
public bool IsValidElement (
    int EID,
    esriElementType ElementType
);
[C++]
HRESULT IsValidElement(
  long EID,
  esriElementType ElementType
);
[C++]

Parameters EID [in]
EID is a parameter of type long ElementType [in]
ElementType is a parameter of type esriElementType

Product Availability

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

Remarks

The valid state of an element can be either true or false. A state of true means the element is part of the network while a state of false means it is not part of the network.

See Also

INetElements Interface