IAircraftDetailFetcherRegisterAircraft Method |
Registers an aircraft as being tracked.
Namespace: VirtualRadar.InterfaceAssembly: VirtualRadar.Interface (in VirtualRadar.Interface.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax AircraftDetail RegisterAircraft(
IAircraft aircraft
)
Function RegisterAircraft (
aircraft As IAircraft
) As AircraftDetail
AircraftDetail^ RegisterAircraft(
IAircraft^ aircraft
)
abstract RegisterAircraft :
aircraft : IAircraft -> AircraftDetail
Parameters
- aircraft
- Type: VirtualRadar.InterfaceIAircraft
Return Value
Type:
AircraftDetailThe aircraft details if they're already known, or null if this is the first time the aircraft
has been added or the aircraft is known to have no details recorded on the database.
Remarks
Each aircraft list should call this function to keep the aircraft monitored for database
changes. If the fetcher does not receive a RegisterAircraft call within a couple of minutes then it
stops monitoring the aircraft's database record.
If the aircraft has already been registered and its database details never change then objects that
make further calls to RegisterAircraft for the aircraft will not see events raised for it. These objects
must assume that the return value represents the correct database details for the aircraft.
See Also