Click or drag to resize

LinkHelperGetOptionalLinkService Method

Gets the ILinkService provided by a link, or if the service does not exist.

Namespace:  AGI.Foundation.Access
Assembly:  AGI.Foundation.Core (in AGI.Foundation.Core.dll) Version: 24.3.420.0 (24.3.420.0)
Syntax
public static ILinkService GetOptionalLinkService(
	IServiceProvider link
)

Parameters

link
Type: SystemIServiceProvider
The link from which to obtain the service.

Return Value

Type: ILinkService
The service provided by the link, or if the service does not exist.
Exceptions
ExceptionCondition
ArgumentNullException Thrown when link is .
See Also