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


INetElements.IsValidElement Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > IN > INetElements Interface > INetElements.IsValidElement Method
ArcGIS Developer Help

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