ArcObjects Library Reference (GeoDatabase)  

INetworkSource.ID Property

Unique identifier of this network source.

[Visual Basic .NET]
Public ReadOnly Property ID As Integer
[C#]
public int ID {get;}
[C++]
HRESULT get_ID(
  long* ID
);
[C++]

Parameters

ID [out, retval]   ID is a parameter of type long

Product Availability

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

Remarks

Each source in a Network Dataset is identified by a unique value, the ID property.  The ID property can be used to get a reference to the corresponding network source through the INetworkDataset::SourceByID property.  This ID is different than the ID value returned by the IObjectClass::ObjectClassID property.

As with ObjectID values, SourceID values are never reused.  They are not guaranteed to be sequential, but are guaranteed to be in increasing order based on when the source was added to the network.  Unless the source is added or deleted from the DataElement, the SourceID values will remain constant after the INetworkDataset::UpdateSchema method is called.

See Also

INetworkSource Interface