Bagikan melalui


ChatRoomSession Class

This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.

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

'Declaration
Public Class ChatRoomSession
'Usage
Dim instance As ChatRoomSession
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 (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

ChatRoomSession Members

Microsoft.Rtc.Collaboration.GroupChat Namespace