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


INASolver.ClassDefinitions Property (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (NetworkAnalyst)  

INASolver.ClassDefinitions Property

The inputs and outputs defined by the solver.

[Visual Basic .NET]
Public ReadOnly Property ClassDefinitions As INamedSet
[C#]
public INamedSet ClassDefinitions {get;}
[C++]
HRESULT get_ClassDefinitions(
  INamedSet** definitions
);
[C++]

Parameters definitions [out, retval]
definitions is a parameter of type INamedSet

Product Availability

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

Remarks

The ClassDefinitions property returns the NAClassDefinitions that the solver requires.  These NAClassDefinitions are used when the solver creates the NAContext with NAClasses based on these NAClassDefinitions.  For example, there are class definitions for things like stops, barriers and routes for a route solver.

Note:  It is recommended to use CreateContext and Bind before accessing the NAClassDefinitions from the NASolver object.  Otherwise, you get "free" or template NAClassDefinitions that have not been fully initialized based on the network dataset.

See Also

INASolver Interface