Click or drag to resize

LinkHelperGetLinkService Method (IServiceProvider, String)

Gets the ILinkService provided by a link.

Namespace:  AGI.Foundation.Access
Assembly:  AGI.Foundation.Core (in AGI.Foundation.Core.dll) Version: 24.2.419.0 (24.2.419.0)
Syntax
public static ILinkService GetLinkService(
	IServiceProvider link,
	string exceptionMessage
)

Parameters

link
Type: SystemIServiceProvider
The link 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: ILinkService
The service provided by the link.
Exceptions
ExceptionCondition
ArgumentNullException Thrown when link is .
ServiceNotAvailableException Thrown when link does not provide ILinkService.
See Also