Click or drag to resize
ChatRoomHelperChangeChatRoom Method (Int32, String, Boolean, String, Boolean, String, NullableBoolean, String, Boolean)
Changes chat room. Properly handles changing from public to private state. Invalidates rooms cache.

Namespace: CMS.Chat
Assembly: CMS.Chat (in CMS.Chat.dll) Version: 8.2.23
Syntax
C#
public static ChatRoomData ChangeChatRoom(
	int roomID,
	string displayName,
	bool isPrivate,
	string password,
	bool allowAnonym,
	string description,
	Nullable<bool> isSupport,
	string codeName,
	bool hashPassword
)

Parameters

roomID
Type: SystemInt32
Room ID to change
displayName
Type: SystemString
New display name
isPrivate
Type: SystemBoolean
New is private state
password
Type: SystemString
New password. If it is null, password is not changed
allowAnonym
Type: SystemBoolean
New allow anonym
description
Type: SystemString
New description
isSupport
Type: SystemNullableBoolean
New is support state (is not changed if null)
codeName
Type: SystemString
New code name (is not changed if null)
hashPassword
Type: SystemBoolean
If true, password is not hashed yet and should be hashed automatically; if false, hashing was handled by caller

Return Value

Type: ChatRoomData
Changed chat room
See Also