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: 19.1.398.0 (19.1.398.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 The specified link object does not provide ILinkService.
See Also