RoutingStrategyRegisterProfile Method | |
Print this page
Learn more about Verizon Connect GeoBase.
Get information about the latest release
Namespace:
Telogis.GeoBase.Routing
Assembly:
geobase.net (in geobase.net.dll) Version: 4.99.0.0
Syntax public void RegisterProfile(
RoutingProfile profile,
Country country,
VehicleSpec vehicleSpec
)
Public Sub RegisterProfile (
profile As RoutingProfile,
country As Country,
vehicleSpec As VehicleSpec
)
Parameters
- profile
- Type: Telogis.GeoBase.RoutingRoutingProfile
The routing profile to register. - country
- Type: Telogis.GeoBaseCountry
The country to use this routing profile for. - vehicleSpec
- Type: Telogis.GeoBase.RoutingVehicleSpec
The vehicle specifications identifying the type of vehicle to use this routing profile for.
Remarks The RoutingProfile can be at risk of getting removed as part of Garbage Collection because the RoutingStrategy class
has no reference to it. This also means that the RoutingProfile is not disposed automatically when the RoutingStrategy is removed.
To ensure that you manage the lifetime of the profile, we recommend that you add a 'Using' block for the duration of the routes
that use the profile.
See Also