Enables a user to join a chat room. When joined to a chat room, a user can send and receive chat messages in real time.

Inheritance Hierarchy

System . . :: . . Object
   Microsoft.Rtc.Collaboration.GroupChat . . :: . . ChatRoomSession

Namespace:  Microsoft.Rtc.Collaboration.GroupChat
Assembly:  Microsoft.Rtc.Collaboration.GroupChat(in Microsoft.Rtc.Collaboration.GroupChat.dll)

Syntax

Visual Basic (Declaration)
Public 
Class 
ChatRoomSession
Visual Basic (Usage)
Dim 
instance 
As 
ChatRoomSession
C#
public 
class 
ChatRoomSession

Remarks

Each GroupChatEndpoint can join each ChatRoom at most one time. Subsequent attempts to join the same chat room will fail with ChatRoomSessionStateException . A collection of the currently ActiveChatRoomSessions may be obtained from GroupChatEndpoint ; and a reference to a specific active chat room session may be obtained from Item [ ( [ ( String ] ) ] ) .

Prior to invoking other methods on this class, the user must first choose a chat room to join, and invoke one of the overloaded Join methods. Additionally, for continuity of information, it is recommended that any events which are interesting to the user should be subscribed prior to invoking Join.

Thread Safety

Any public static( Sharedin Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also