Click or drag to resize

GpsReceiverHelperGetGpsReceiver Method (IServiceProvider)

Gets the GpsReceiver from the IGpsReceiverService provided by an object.

Namespace:  AGI.Foundation.Navigation
Assembly:  AGI.Foundation.Navigation (in AGI.Foundation.Navigation.dll) Version: 22.2.414.0 (22.2.414.0)
Syntax
public static GpsReceiver GetGpsReceiver(
	IServiceProvider provider
)

Parameters

provider
Type: SystemIServiceProvider
The object from which to obtain the IGpsReceiverService service.

Return Value

Type: GpsReceiver
The GpsReceiver from the IGpsReceiverService.
Exceptions
ExceptionCondition
ArgumentNullException Thrown when provider is .
ServiceNotAvailableException Thrown when provider does not provide IGpsReceiverService.
See Also