Click or drag to resize

RoutingStrategyRegisterProfile Method

Verizon Connect Logo
Print this page
Learn more about Verizon Connect GeoBase.
Get information about the latest release
Registers the RoutingProfile for a given country and type of vehicle.

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
)

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