ArcObjects Library Reference (GeoDatabase)  

INetElements.GetEIDs Method

Returns the network element IDs (EIDs) corresponding to the specified user classID and user ID.

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

Parameters

UserClassID [in]   UserClassID is a parameter of type long UserID [in]   UserID is a parameter of type long ElementType [in]

  ElementType is a parameter of type esriElementType

EIDs [out, retval]

  EIDs is a parameter of type IEnumNetEID

Product Availability

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

Remarks

Pass in a valid UserClassID, UserID, and esriElementType and an enumeration of the corresponding Element IDs (EIDs) in the logical network is returned.  If no network elements match the given UserClassID, UserID, and esriElementType, then an empty enumeration of EIDs is returned.
 
If the network is part of a geometric network, then the UserClassID and UserID correspond to the FeatureClassID and OID of the feature. For complex edge and junction features, this method returns an enumeration of the corresponding Element IDs in the logical network. For simple edge and junction features, the enumeration will always contain only one Element ID (EID).

See Also

INetElements Interface