Click or drag to resize
ChatServiceCreateChatRoom Method
Creates new chat room. Current user have to join it manually after creating it. Code name of this room will be: chatroom_{current_user_id}_{new_guid}

Namespace: CMS.Chat
Assembly: CMS.Chat (in CMS.Chat.dll) Version: 12.0.0
Syntax
C#
public ChatGeneralResponse<ChatRoomData> CreateChatRoom(
	string displayName,
	bool isPrivate,
	string password,
	bool allowAnonym,
	string description
)

Parameters

displayName
Type: SystemString
Display name of a new room (cannot be empty)
isPrivate
Type: SystemBoolean
Indicates if this room will be private
password
Type: SystemString
Optional password
allowAnonym
Type: SystemBoolean
True if anonymous users can join this room (anonym is chat user without CMS.User assigned to it)
description
Type: SystemString
Description of the chat room

Return Value

Type: ChatGeneralResponseChatRoomData
New chat room

Implements

IChatServiceCreateChatRoom(String, Boolean, String, Boolean, String)
See Also