Click or drag to resize

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: 19.1.398.0 (19.1.398.0)
Syntax
public static IServiceProvider GetParticipantByRole(
	IServiceProvider link,
	LinkRole role
)

Parameters

link
Type: SystemIServiceProvider
The link.
role
Type: AGI.Foundation.AccessLinkRole
The role for which to obtain the participant.

Return Value

Type: IServiceProvider
The participant.
Exceptions
ExceptionCondition
ArgumentNullException Thrown when link is .
ArgumentException The specified LinkRole is not Transmitter or Receiver.
ServiceNotAvailableException The specified link object does not provide ILinkService.
See Also