Share via


ChatConversation Classe

Définition

Représente une conversation dans un client de conversation.

public ref class ChatConversation sealed
public ref class ChatConversation sealed : IChatItem
/// [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 ChatConversation 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)]
class ChatConversation final : IChatItem
[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 ChatConversation
[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 ChatConversation : IChatItem
Public NotInheritable Class ChatConversation
Public NotInheritable Class ChatConversation
Implements IChatItem
Héritage
Object Platform::Object IInspectable ChatConversation
Attributs
Implémente

Configuration requise pour Windows

Famille d’appareils
Windows 10 (introduit dans 10.0.10240.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
API contract
Windows.Foundation.UniversalApiContract (introduit dans v1.0)
Fonctionnalités de l’application
chat chatSystem smsSend

Remarques

Appelez la méthode ChatMessageStore.GetConversationAsync ou ChatMessageStore.GetConversationFromThreadingInfoAsync pour obtenir une instance de cette classe.

Historique des versions

Version de Windows Version du SDK Valeur ajoutée
1511 10586 CanModifyParticipants

Propriétés

CanModifyParticipants

Obtient ou définit une valeur booléenne qui indique si les participants peuvent être modifiés ou non.

HasUnreadMessages

Obtient une valeur booléenne indiquant s’il existe des messages non lus dans chatConversation.

Id

Obtient l’identificateur unique de ChatConversation.

IsConversationMuted

Obtient ou définit une valeur booléenne indiquant si la ConversationConversation est désactivée.

ItemKind

Obtient le type d’élément.

MostRecentMessageId

Obtient l’ID du message le plus récent de la conversation.

Participants

Obtient la liste de tous les participants à la conversation.

Subject

Obtient ou définit le sujet d’une conversation de groupe.

ThreadingInfo

Obtient les informations de thread pour chatConversation.

Méthodes

DeleteAsync()

Supprime de manière asynchrone tous les messages de la ConversationConversation et de la conversation elle-même.

GetMessageReader()

Obtient le ChatMessageReader pour cette ConversationConversation.

MarkMessagesAsReadAsync()

Marque de manière asynchrone tous les messages de la conversation comme lus.

MarkMessagesAsReadAsync(DateTime)

Marque de façon asynchrone tous les messages de la conversation avant le DateTime spécifié comme lu.

NotifyLocalParticipantComposing(String, String, Boolean)

Appelez ceci pour indiquer que le participant local a commencé ou a terminé la saisie.

NotifyRemoteParticipantComposing(String, String, Boolean)

Déclenche localement l’événement qui indique qu’un participant distant tape.

SaveAsync()

Enregistre de manière asynchrone le ChatConversation.

Événements

RemoteParticipantComposingChanged

Se produit lorsque l’utilisateur distant a démarré ou terminé la saisie.

S’applique à