ArcObjects Library Reference (GeoDatabase)  

INetworkDataset.SourceByID Property

Network dataset source corresponding to the specified ID.

[Visual Basic .NET]
Public Function get_SourceByID ( _
    ByVal ID As Integer _
) As INetworkSource
public INetworkSource get_SourceByID (
    int ID
HRESULT get_SourceByID(
  long ID,
  INetworkSource** Source


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

  Source is a parameter of type INetworkSource

Product Availability

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


Returns the source with the specified ID.  The ID is not equal to the index.  Rather it is the internal ID of the source as stored in the metadata tables.  It can be retrieved from the INetworkSource::ID property.

See Also

INetworkDataset Interface

.NET Related Topics

How to access source features referenced by a network dataset