This document is archived and information here might be outdated. Recommended version. |
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*
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.