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: 24.3.420.0 (24.3.420.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