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


INALayer3.FindDataLayerByNAClassName Method (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (NetworkAnalyst)  

INALayer3.FindDataLayerByNAClassName Method

The index of the named datalayer in the collection of DataLayers of the network analysis layer.

[Visual Basic .NET]
Public Function FindDataLayerByNAClassName ( _
    ByVal Name As String _
) As Integer
[C#]
public int FindDataLayerByNAClassName (
    string Name
);
[C++]
HRESULT FindDataLayerByNAClassName(
  BSTR Name,
  long* Index
);
[C++]

Parameters Name [in] Name is a parameter of type BSTR Index [out, retval] Index is a parameter of type long

Product Availability

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

See Also

INALayer3 Interface