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


INetElements.QueryIDs 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.QueryIDs Method
ArcGIS Developer Help

INetElements.QueryIDs Method

Returns the user class ID, user ID, and user sub ID for the specified network element.

[Visual Basic .NET]
Public Sub QueryIDs ( _
    ByVal EID As Integer, _
    ByVal ElementType As esriElementType, _
    ByRef UserClassID As Integer, _
    ByRef UserID As Integer, _
    ByRef UserSubID As Integer _
)
[C#]
public void QueryIDs (
    int EID,
    esriElementType ElementType,
    ref int UserClassID,
    ref int UserID,
    ref int UserSubID
);
[C++]
HRESULT QueryIDs(
  long EID,
  esriElementType ElementType,
  System.Int32* UserClassID,
  System.Int32* UserID,
  System.Int32* UserSubID
);
[C++]
Parameters
EID [in]

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

Product Availability

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

Remarks

Pass an a valid Element ID (EID) and its esriElementType and the IDs of the corresponding feature in the geometric network are 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.

See Also

INetElements Interface