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