Click or drag to resize

GpsReceiverHelperGetGpsReceiver Method (IServiceProvider, String)

Gets the GpsReceiver from the IGpsReceiverService provided by an object.

Namespace:  AGI.Foundation.Navigation
Assembly:  AGI.Foundation.Navigation (in AGI.Foundation.Navigation.dll) Version: 24.2.419.0 (24.2.419.0)
Syntax
public static GpsReceiver GetGpsReceiver(
	IServiceProvider provider,
	string exceptionMessage
)

Parameters

provider
Type: SystemIServiceProvider
The object from which to obtain the IGpsReceiverService service.
exceptionMessage
Type: SystemString
An error message to include in the exception if the IGpsReceiverService service is unavailable.

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