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


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

INAAgent.Applies Method

Indicates if the agent is appropriate to use with the given network dataset.

[Visual Basic .NET]
Public Function Applies ( _
    ByVal network As IDENetworkDataset, _
    ByVal contextHelper As INAContextHelper _
) As Boolean
[C#]
public bool Applies (
    IDENetworkDataset network,
    INAContextHelper contextHelper
);
[C++]
HRESULT Applies(
  IDENetworkDataset* network,
  INAContextHelper* contextHelper
);
[C++]
Parameters
network [in]

network is a parameter of type IDENetworkDataset* contextHelper [in]
contextHelper is a parameter of type INAContextHelper*

Product Availability

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

Remarks

The method Applies indicates if the NAAgent should be attached to the NAContext referenced by the input INAContextHelper


Applies returns true if the agent is applicable and has not already been attached to the NAContext.  For example, a NAStreetDirectionsAgent will only apply to solvers that support driving directions.

See Also

INAAgent Interface