ChatRoomSession Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
public ref class ChatRoomSession
public class ChatRoomSession
type ChatRoomSession = class
Public Class ChatRoomSession
- Inheritance
-
ChatRoomSession
Remarks
Prior to invoking other methods on this class, the user must first choose a chat room to join, and invoke one of the overloaded joining methods. Additionally, an application should subscribe to any interested events before invoking a joining method.
Constructors
ChatRoomSession(PersistentChatEndpoint) |
Initializes a new instance of the ChatRoomSession class. |
Properties
AddIn |
Gets the current add-in that applies to this chat room. |
CanChat |
Gets a Boolean value indicating whether the current user can chat. If IsAuditorium is true, the user must have the Presenter permission to chat. |
CanManage |
Gets a Boolean value indicating whether the current user can manage this chat room. |
ChatRoomUri |
Gets the URI of the chat room to which this session is joined. If the session is not joined, this property is null. |
Description |
Gets the description of the chat room to which this session is joined. If the session is not joined, this property is null. |
Endpoint |
Gets the endpoint on which this session was established. |
IsAuditorium |
Gets the value indicating if the chat room is an auditorium chat room. In an auditorium chat room, only those members who have been granted Presenter privileges may post messages. |
IsFilePostAllowed |
Gets a Boolean value indicating whether file posting is allowed in the chat room. |
IsInvite |
Gets a Boolean value indicating if members are invited to the chat room. |
IsLogged |
Gets a Boolean value indicating if the chat room is logged. |
Name |
Gets the name of the chat room to which this session is joined. If the session is not joined, this property is null. |
ParentCategoryUri |
Gets the URI of the category for the chat room to which this session is joined. If the session is not joined, this property is null. |
Participants |
Gets the participant list of the chat room to which this session is joined. |
State |
Gets a value indicating the state of this chat room session. |
VisibleOnlyToMembers |
Gets a Boolean value indicating if the room is private and visible only to members. |
Methods
Operators
Implicit(ChatRoomSession to ChatRoomSummary) |
Performs an implicit conversion from ChatRoomSession to ChatRoomSummary. |
Events
ChatMessageReceived |
Raised when a chat message is received. For best results, register for this event before invoking BeginJoin(ChatRoomSummary, AsyncCallback, Object) on the session. |
ChatRoomPropertiesChanged |
Raised when the properties of the chat room change. To catch the events, an application must register for this event before invoking BeginJoin(ChatRoomSummary, AsyncCallback, Object) on the session. |
ChatRoomSessionStateChanged |
Raised when the state of this chat room session changes. This event will fire when invoking BeginJoin(ChatRoomSummary, AsyncCallback, Object) or BeginLeave(AsyncCallback, Object) on the session. It will also be fired if the membership privileges of the currently logged in user change, or if the PersistentChatEndpoint is disconnected. For best results, register for this event before invoking BeginJoin(ChatRoomSummary, AsyncCallback, Object) on the session. |
ParticipantAttendanceChanged |
Raised when a participant joins or leaves the chat room. To catch the events, an application must register for this event before invoking BeginJoin(ChatRoomSummary, AsyncCallback, Object) on the session. |
ParticipantPrivilegeChanged |
Raised when the privileges of an active user in this chat room change. |
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for