ChatMessage 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.
Represents a chat message.
public ref class ChatMessage sealed
public ref class ChatMessage sealed : IChatItem
/// [Windows.Foundation.Metadata.Activatable(65536, Windows.Foundation.UniversalApiContract)]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class ChatMessage final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
/// [Windows.Foundation.Metadata.Activatable(65536, "Windows.Foundation.UniversalApiContract")]
class ChatMessage final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
/// [Windows.Foundation.Metadata.Activatable(65536, "Windows.Foundation.UniversalApiContract")]
class ChatMessage final : IChatItem
[Windows.Foundation.Metadata.Activatable(65536, typeof(Windows.Foundation.UniversalApiContract))]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class ChatMessage
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
[Windows.Foundation.Metadata.Activatable(65536, "Windows.Foundation.UniversalApiContract")]
public sealed class ChatMessage
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
[Windows.Foundation.Metadata.Activatable(65536, "Windows.Foundation.UniversalApiContract")]
public sealed class ChatMessage : IChatItem
function ChatMessage()
Public NotInheritable Class ChatMessage
Public NotInheritable Class ChatMessage
Implements IChatItem
- Inheritance
- Attributes
- Implements
Windows requirements
Device family |
Windows 10 (introduced in 10.0.10240.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
|
API contract |
Windows.Foundation.UniversalApiContract (introduced in v1.0)
|
App capabilities |
chat
chatSystem
smsSend
|
Remarks
Version history
Windows version | SDK version | Value added |
---|---|---|
1607 | 14393 | SyncId |
Constructors
ChatMessage() |
Creates a new instance of the ChatMessage class. |
Properties
Attachments |
Gets a list of chat message attachments. |
Body |
Gets or sets the body of the chat message. |
EstimatedDownloadSize |
Gets or sets the estimated size of a file to be sent or received. |
From |
Gets the identifier or address of the sender of the message. |
Id |
Gets the identifier of the message. |
IsAutoReply |
Gets or sets a Boolean value indicating if the message is an auto-reply. |
IsForwardingDisabled |
Gets a Boolean value indicating if forwarding is disabled. |
IsIncoming |
Gets Boolean a value indicating if the message is incoming or outgoing. |
IsRead |
Gets a Boolean value indicating if the message has been read. |
IsReceivedDuringQuietHours |
Gets or sets a Boolean value indicating if the message was received during user specified quiet hours. |
IsReplyDisabled |
Gets a Boolean value indicating if reply is disabled on the ChatMessage. |
IsSeen |
Gets or sets a Boolean value indicating if the message has been seen. |
IsSimMessage |
Gets a Boolean value indicating if the message is stored on a SIM card. |
ItemKind |
Gets the item kind. |
LocalTimestamp |
Gets the local timestamp of the message. |
MessageKind |
Gets or sets the type of the ChatMessage. |
MessageOperatorKind |
Gets or sets a value indicating the type of message operator, such as SMS, MMS, or RCS. |
NetworkTimestamp |
Gets the network timestamp of the message. |
Recipients |
Gets the list of recipients of the message. |
RecipientsDeliveryInfos |
Gets the delivery info for each of the recipients of the ChatMessage. |
RecipientSendStatuses |
Gets the list of send statuses for the message. |
RemoteId |
Gets or sets the remote ID for the ChatMessage. |
ShouldSuppressNotification |
Gets or sets a Boolean value indicating if notification of receiving the ChatMessage should be suppressed. |
Status |
Gets the status of the message. Typical states include draft, sent, received, deleted, etc. |
Subject |
Gets the subject of the message. |
SyncId |
The ID used to identify a message across devices. This ID is generated on creation for all messages. Clients that copy messages between devices also need to copy this ID in order to uniquely identify the same message on different devices |
ThreadingInfo |
Gets or sets the conversation threading info for the ChatMessage. |
TransportFriendlyName |
Gets the transport friendly name of the message. |
TransportId |
Gets or sets the transport ID of the message. |