Click or drag to resize

PointHelperGetPoint Method (IServiceProvider, String)

Gets the Point from 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 Point GetPoint(
	IServiceProvider provider,
	string exceptionMessage
)

Parameters

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

Return Value

Type: Point
The Point from the ILocationPointService.
Exceptions
ExceptionCondition
ArgumentNullException Thrown when provider is .
ServiceNotAvailableException Thrown when provider does not provide ILocationPointService.
See Also