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


INATraversalResult.SourceByID Property (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (NetworkAnalyst)  

INATraversalResult.SourceByID Property

The network traversal source by ID.

[Visual Basic .NET]
Public Function get_SourceByID ( _
    ByVal SourceID As Integer _
) As INATraversalResultSource
[C#]
public INATraversalResultSource get_SourceByID (
    int SourceID
);
[C++]
HRESULT get_SourceByID(
  long SourceID,
  INATraversalResultSource** resultSource
);
[C++]

Parameters SourceID [in] SourceID is a parameter of type long resultSource [out, retval]
resultSource is a parameter of type INATraversalResultSource

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server. Requires Network Analyst Extension.

Remarks

The SourceByID property returns an NATraversalResultSource object corresponding to the ID of the source in the traversal result.

The ID of a source is returned by the SourceID property of the NATraversalResultElement's INATraversalResultElement interface.  It can also be found on the ID property on the INATraversalResultSource interface of the NATraversalResultSource object.

See Also

INATraversalResult Interface