ChatOnlineUserInfoProviderLogout Method |
Logouts user from chat.
User is also removed from all rooms where he is online now. Leave room system message is inserted to this room.
Does nothing if this online user does not exists.
Namespace: CMS.ChatAssembly: CMS.Chat (in CMS.Chat.dll) Version: 8.2.23
Syntax public static void Logout(
int siteID,
int chatUserID,
string leaveSystemMessageFormat,
Nullable<ChatMessageTypeEnum> leaveSystemMessageType
)
Parameters
- siteID
- Type: SystemInt32
Site ID - chatUserID
- Type: SystemInt32
Chat user ID - leaveSystemMessageFormat
- Type: SystemString
Format of system message. Placeholder {nickname} will be replaced by actual user's nickname. If null system message won't be inserted. - leaveSystemMessageType
- Type: SystemNullableChatMessageTypeEnum
Type of leave room system message (typically ChatMessageTypeEnum.LeaveRoom)
See Also