Click or drag to resize

PointHelperGetLocationPointService Method (IServiceProvider, String)

Gets the ILocationPointService provided by an object.

Namespace:  AGI.Foundation.Geometry
Assembly:  AGI.Foundation.Core (in AGI.Foundation.Core.dll) Version: 24.2.419.0 (24.2.419.0)
Syntax
public static ILocationPointService GetLocationPointService(
	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: ILocationPointService
The service provided by the object.
Exceptions
ExceptionCondition
ArgumentNullException Thrown when provider is .
ServiceNotAvailableException Thrown when provider does not provide ILocationPointService.
See Also