Click or drag to resize

LinkHelperGetRoleOfParticipant Method (IServiceProvider, IServiceProvider)

Gets the role played by a specified participant in the link.

Namespace:  AGI.Foundation.Access
Assembly:  AGI.Foundation.Core (in AGI.Foundation.Core.dll) Version: 24.1.418.0 (24.1.418.0)
Syntax
public static LinkRole GetRoleOfParticipant(
	IServiceProvider link,
	IServiceProvider participant
)

Parameters

link
Type: SystemIServiceProvider
The link.
participant
Type: SystemIServiceProvider
The participant.

Return Value

Type: LinkRole
The role played by the participant.
Exceptions
ExceptionCondition
ArgumentNullException Thrown when link is .
ServiceNotAvailableException Thrown when link does not provide ILinkService.
ArgumentException Thrown when participant is not the Transmitter or the Receiver in the link.
See Also