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


INetElements.GetEID Method (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (GeoDatabase)  

INetElements.GetEID Method

Returns the network element ID (EID).

[Visual Basic .NET]
Public Function GetEID ( _
    ByVal UserClassID As Integer, _
    ByVal UserID As Integer, _
    ByVal UserSubID As Integer, _
    ByVal ElementType As esriElementType _
) As Integer
[C#]
public int GetEID (
    int UserClassID,
    int UserID,
    int UserSubID,
    esriElementType ElementType
);
[C++]
HRESULT GetEID(
  long UserClassID,
  long UserID,
  long UserSubID,
  esriElementType ElementType,
  long* EID
);
[C++]

Parameters UserClassID [in] UserClassID is a parameter of type long UserID [in] UserID is a parameter of type long UserSubID [in] UserSubID is a parameter of type long ElementType [in]
ElementType is a parameter of type esriElementType EID [out, retval] EID is a parameter of type long

Product Availability

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

Remarks

Pass in a valid UserClassID, UserID, UserSubID, and esriElementType and the corresponding Element ID (EID) in the logical network is returned.  If no network elements match the given UserClassID, UserID, UserSubID, and esriElementType, then 0 is returned.
If the network is part of a geometric network, the UserClassID and UserID correspond to the FeatureClassID and OID of the feature. The UserSubID is the ID of the subelement of the feature.
Entering a negative value for the UserSubID will return the first EID in the table that matches the specified UserClassID and UserID.  This is not necessarily the lowest-valued EID matching the specified UserClassID and UserID, nor necessarily the EID corresponding to the lowest-valued SubID.

See Also

INetElements Interface