ArcObjects Library Reference  (GeoDatabase)    

INetElements.QueryIDs Method

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

[Visual Basic 6.0]
Sub QueryIDs(
    ByVal EID As Long, _
    ByVal ElementType As esriElementType, _
    UserClassID As Long, _
    UserID As Long, _
    UserSubID As Long _
)
[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
);
[Java]
public void queryIDs (
    int EID,
    esriElementType ElementType,
    int UserClassID,
    int UserID,
    int UserSubID
)
throws
    IOException,
    AutomationException
[C++]
HRESULT QueryIDs(
  long EID,
  esriElementType ElementType,
  long* UserClassID,
  long* UserID,
  long* 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

 


Feedback Send feedback on this page