LinkHelperGetLinkService Method (IServiceProvider, String) |
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 GetLinkService(
IServiceProvider link,
string exceptionMessage
)
Public Shared Function GetLinkService (
link As IServiceProvider,
exceptionMessage As String
) As ILinkService
public:
static ILinkService^ GetLinkService(
IServiceProvider^ link,
String^ exceptionMessage
)
static member GetLinkService :
link : IServiceProvider *
exceptionMessage : string -> ILinkService
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:
ILinkServiceThe service provided by the link.
Exceptions See Also