Click or drag to resize

GpsReceiverHelperGetGpsReceiverService Method (IServiceProvider, String)

Gets 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 IGpsReceiverService GetGpsReceiverService(
	IServiceProvider provider,
	string exceptionMessage
)

Parameters

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

Return Value

Type: IGpsReceiverService
The service provided by the object.
Exceptions
ExceptionCondition
ArgumentNullException Thrown when provider is .
ServiceNotAvailableException Thrown when provider does not provide IGpsReceiverService.
See Also