LinkHelperGetParticipantByRole Method (IServiceProvider, LinkRole) |
Gets the participant that is playing a specified role in the 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 IServiceProvider GetParticipantByRole(
IServiceProvider link,
LinkRole role
)
Public Shared Function GetParticipantByRole (
link As IServiceProvider,
role As LinkRole
) As IServiceProvider
public:
static IServiceProvider^ GetParticipantByRole(
IServiceProvider^ link,
LinkRole role
)
static member GetParticipantByRole :
link : IServiceProvider *
role : LinkRole -> IServiceProvider
Parameters
- link
- Type: SystemIServiceProvider
The link. - role
- Type: AGI.Foundation.AccessLinkRole
The role for which to obtain the participant.
Return Value
Type:
IServiceProviderThe participant.
Exceptions See Also