FormattedOutboundChatMessage 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.
Used to construct a chat message which contains formatted parts, such as emoticons, hyperlinks, and chat room links. Once constructed, you must invoke one or more of the Append methods before sending this message (see BeginSendChatMessage(FormattedOutboundChatMessage, AsyncCallback, Object)).
public ref class FormattedOutboundChatMessage
public class FormattedOutboundChatMessage
type FormattedOutboundChatMessage = class
Public Class FormattedOutboundChatMessage
- Inheritance
-
FormattedOutboundChatMessage
Constructors
FormattedOutboundChatMessage() |
Initializes a new instance of the Object class. |
FormattedOutboundChatMessage(Boolean) |
Initializes a new instance of the FormattedOutboundChatMessage class, optionally marking the message as an alert. |
FormattedOutboundChatMessage(Boolean, String) |
Initializes a new instance of the FormattedOutboundChatMessage class. This constructor is used to create a story message. Story messages have a title which appears in the chat as a clickable link. When clicked, a dialog appears which shows the remaining message content. |
Properties
FormattedMessageParts |
Parses the chat message into MessagePart segments, and returns a collection of the parts found. |
IsAlert |
Gets a value indicating whether this instance is alert. |
MessageContent |
Gets the raw content of the chat message, after all message parts have been formatted. |
StoryTitle |
Gets the story title, or null if this is not a story message. |
Methods
AppendChatRoomLink(ChatRoomSummary) |
Appends the chat room link. |
AppendEmoticon(ChatEmoticon) |
Appends the emoticon. |
AppendHyperLink(String, Uri) |
Appends the hyper link. |
AppendPlainText(String) |
Appends a plain text message part. |
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