Click or drag to resize
ChatRoomUserInfoProviderJoinRoom Method
Joins user to room. Sets his JoinTime to now, LeaveTime to null, etc. This method checks automatically password. It takes into account actual 'join state' of this user -> if user is already joined, he does not have to provide correct password. 'Enabled state' of this room is also checked.

Namespace: CMS.Chat
Assembly: CMS.Chat (in CMS.Chat.dll) Version: 11.0.0
Syntax
C#
public static JoinRoomResultEnum JoinRoom(
	int roomID,
	int chatUserID,
	string password
)

Parameters

roomID
Type: SystemInt32
Room ID
chatUserID
Type: SystemInt32
Chat user ID
password
Type: SystemString
Room's password. If room has not password this parameter will be ignored.

Return Value

Type: JoinRoomResultEnum
Result of Joining
See Also