SmartFoxServer Silverlight API
SetRoomVariables Method
Namespaces ► SmartFoxClientAPI ► SmartFoxClient ► SetRoomVariables()()()
Members

Icon | Member | Description
--- | --- | ---
| SetRoomVariables(List<(Of <(RoomVariable>)>)) | SetRoomVariables(List<(Of <(RoomVariable>)>), Int32, Boolean)
| SetRoomVariables(List<(Of <(RoomVariable>)>), Int32) | SetRoomVariables(List<(Of <(RoomVariable>)>), Int32, Boolean)
| SetRoomVariables(List<(Of <(RoomVariable>)>), Int32, Boolean) | Set one or more Room Variables. Room Variables are a useful feature to share data across the clients, keeping it in a centralized place on the server. When a user sets/updates/deletes one or more Room Variables, all the other users in the same room are notified. Allowed data types for Room Variables are Numbers, Strings and Booleans; in order save bandwidth, Arrays and Objects are not supported. Nevertheless, an array of values can be simulated, for example, by using an index in front of the name of each variable (check one of the following examples). If a Room Variable is set to null, it is deleted from the server.

Assembly: SmartFoxClientAPI_Silverlight (Module: SmartFoxClientAPI_Silverlight) Version: 1.0.0.0 (1.0.0.0)