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: 18.4.397.0 (18.4.397.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 The specified link object does not provide ILinkService.
ArgumentException The specified participant is not the Transmitter or the Receiver in the link.
See Also