<img height="1" width="1" style="display:none;" alt="" src="https://px.ads.linkedin.com/collect/?pid=6889170&amp;fmt=gif">
Skip to content
  • There are no suggestions because the search field is empty.

Methods | ChatProjectItem.CreateParticipant Method

Creates and adds a new participant to this chat project.

Namespace: Compiled.EDD.Scripting
Assembly: Compiled.EDD.Scripting (in Compiled.EDD.Scripting.dll) Version: 9.0.0.0-142fa9725

Syntax

C# Copy
public ChatParticipantItem CreateParticipant(
	string? id = null,
	string? displayName = null,
	string? email = null,
	string? AvatarPath = null
)

Parameters
 id    String (Optional)
              The ID of the participant. If null, a new ID will be generated.
displayName    String (Optional)
              The display name of the participant.
email    String (Optional)
              The email of the participant.
avatarPath    String (Optional)
              The path to the avatar of the participant.

Return Value
ChatParticipantItem
The created conversation.

Exceptions

Exception Condition
ArgumentException A participant with the same ID already exists in the project.

See Also

Reference
ChatProjectItem Class
Compiled.EDD.Scripting Namespace