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


INASolver.CreateLayer Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > NetworkAnalyst > ESRI.ArcGIS.NetworkAnalyst > Interfaces > IN > INASolver Interface > INASolver.CreateLayer Method
ArcGIS Developer Help

INASolver.CreateLayer Method

Makes a new network analysis layer for the solver context.

[Visual Basic .NET]
Public Function CreateLayer ( _
    ByVal Context As INAContext _
) As INALayer
[C#]
public INALayer CreateLayer (
    INAContext Context
);
[C++]
HRESULT CreateLayer(
  INAContext* Context
);
[C++]
Parameters
Context [in]

Context is a parameter of type INAContext*

Product Availability

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

Remarks

CreateLayer creates an NALayer that contains an NAClass feature class for every input and output class in the the solver's class definitions; for example, stops, barriers, and route for the route solver.

See Also

INASolver Interface