SupportsRoles(ParticipantId, Role)
staticextension
public static bool SupportsRoles(this ParticipantId participant, Role role) Determines whether a participant supports at least one of the specified roles.
Parameters
participantParticipantId- The participant to inspect.
roleRole- The role or roles to test.
Returns
true when the participant supports at least one specified role; otherwise, false. 