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,
  VARIANT_BOOL* validState
);
[C++]

Parameters

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

  ElementType is a parameter of type esriElementType

validState [out, retval]   validState is a parameter of type VARIANT_BOOL

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