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


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

INetElements.GetEIDCount Method

Returns the number of network element IDs (EIDs) corresponding to the specified user class ID and user ID.

[Visual Basic .NET]
Public Function GetEIDCount ( _
    ByVal UserClassID As Integer, _
    ByVal UserID As Integer, _
    ByVal ElementType As esriElementType _
) As Integer
[C#]
public int GetEIDCount (
    int UserClassID,
    int UserID,
    esriElementType ElementType
);
[C++]
HRESULT GetEIDCount(
  long UserClassID,
  long UserID,
  esriElementType ElementType
);
[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

Product Availability

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

Remarks

Pass in a valid UserClassID, UserID, and esriElementType and the number of corresponding Element IDs (EIDs) in the logical network is returned. If no network elements match the given UserClassID, UserID, and esriElementType, then 0 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 then number of corresponding Element IDs (EIDs) in the logical network. For simple edge and junction features, this method will return 1.

See Also

INetElements Interface