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


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

INATraversalResult.SourceByName Property

The network traversal source by name.

[Visual Basic .NET]
Public Function get_SourceByName ( _
    ByVal Name As String _
) As INATraversalResultSource
[C#]
public INATraversalResultSource get_SourceByName (
    string Name
);
[C++]
HRESULT get_SourceByName(
  BSTR Name,
  INATraversalResultSource** resultSource
);
[C++]

Parameters Name [in] Name is a parameter of type BSTR 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 SourceByName property returns an NATraversalResultSource object corresponding to the name of the source in the traversal result.

This name is not the same name as the source in the network dataset.  For the current ESRI Solvers, the name of this source is prefixed by "ND_" if it is representing a source in a network dataset.  This was done to avoid name collisions.

See Also

INATraversalResult Interface