[**RongIMLib**](../README.md) *** [RongIMLib](../globals.md) / forceSetChatRoomEntry # Function: forceSetChatRoomEntry() > **forceSetChatRoomEntry**(`targetId`, `options`): `Promise`\<[`RCResult`](../interfaces/RCResult.md)\<`void`\>\> 强制设置单个属性 ## Parameters ### targetId `string` 聊天室 ID ### options [`IChatroomEntry`](../interfaces/IChatroomEntry.md) 设置聊天室属性配置参数,类型为 [IChatroomEntry](../interfaces/IChatroomEntry.md) ## Returns `Promise`\<[`RCResult`](../interfaces/RCResult.md)\<`void`\>\> ## Description 强制设置单个聊天室属性。可用于修改他人创建的属性值,以 key = value 的形式存储。当 key 不存在时,代表增加属性;当 key 已经存在时,代表更新属性的值。使用强制设置可修改他人创建的属性值 ## Example **强制设置单个属性示例:** ```ts const chatRoomId = 'chatroomId'; const options = { key: 'key', value: 'value', }; const res = await RongIMLib.forceSetChatRoomEntry(chatRoomId, options); console.log('强制设置单个属性结果:', res); ```