Click or drag to resize

GpsReceiverHelperGetOptionalGpsReceiverService Method

Gets the IGpsReceiverService provided by an object, or if the service does not exist.

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 GetOptionalGpsReceiverService(
	IServiceProvider provider
)

Parameters

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

Return Value

Type: IGpsReceiverService
The service provided by the object, or if the service does not exist.
Exceptions
ExceptionCondition
ArgumentNullException Thrown when provider is .
See Also