ChatMessageStore 클래스

정의

메시지를 읽고, 관리하고, 보낼 수 있는 메서드와 속성을 제공합니다. 애플리케이션은 정적 ChatMessageManager 클래스를 사용하여 메시지 저장소에 액세스할 수 있습니다.

public ref class ChatMessageStore sealed
/// [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 ChatMessageStore final
[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 ChatMessageStore
Public NotInheritable Class ChatMessageStore
상속
Object Platform::Object IInspectable ChatMessageStore
특성

Windows 요구 사항

디바이스 패밀리
Windows 10 (10.0.10240.0 - for Xbox, see UWP features that aren't yet supported on Xbox에서 도입되었습니다.)
API contract
Windows.Foundation.UniversalApiContract (v1.0에서 도입되었습니다.)
앱 기능
chat chatSystem smsSend

설명

RequestStoreAsync를 호출하여 이 클래스의 instance 가져옵니다.

버전 기록

Windows 버전 SDK 버전 추가된 값
1607 14393 GetMessageBySyncIdAsync

속성

ChangeTracker

메시지 저장소에 대한 ChatMessageChangeTracker 클래스 개체를 가져옵니다. 메시지 변경 추적기를 사용하면 애플리케이션이 메시지 저장소의 메시지에 대한 변경 내용을 모니터링할 수 있습니다.

메서드

DeleteMessageAsync(String)

채팅 메시지 저장소에서 메시지를 삭제합니다.

DownloadMessageAsync(String)

식별자가 지정한 메시지를 메시지 저장소에 다운로드합니다.

ForwardMessageAsync(String, IIterable<String>)

지정된 메시지를 새 받는 사람에게 비동기적으로 전달합니다.

GetConversationAsync(String)

ID별로 ChatConversation 을 비동기적으로 가져옵니다.

GetConversationAsync(String, IIterable<String>)

지정된 전송을 사용하여 ID별로 ChatConversation 을 비동기적으로 가져옵니다.

GetConversationFromThreadingInfoAsync(ChatConversationThreadingInfo)

스레딩 정보 개체를 기반으로 하는 대화를 비동기적으로 가져옵니다.

GetConversationReader()

메시지 저장소에 대한 새 또는 기존 ChatConversationReader 를 가져옵니다.

GetConversationReader(IIterable<String>)

지정된 전송을 사용하여 메시지 저장소에 대한 새 또는 기존 ChatConversationReader 를 가져옵니다.

GetMessageAsync(String)

메시지 저장소에서 식별자가 지정한 메시지를 검색합니다.

GetMessageByRemoteIdAsync(String, String)

원격 ID로 메시지를 가져옵니다.

GetMessageBySyncIdAsync(String)

동기화 ID로 메시지를 가져옵니다.

GetMessageReader()

메시지 저장소에서 메시지 컬렉션을 제공하는 ChatMessageReader 클래스 개체를 가져옵니다.

GetMessageReader(TimeSpan)

메시지 저장소에서 메시지 컬렉션을 제공하는 ChatMessageReader 클래스 개체를 가져옵니다. 메시지 컬렉션은 제공된 시간 범위로 제한됩니다.

GetSearchReader(ChatQueryOptions)

메시지를 검색하는 데 사용할 새 또는 기존 ChatSearchReader 를 가져옵니다.

GetUnseenCountAsync()

읽지 않은 채팅 메시지의 수를 비동기적으로 가져옵니다.

GetUnseenCountAsync(IIterable<String>)

지정된 전송을 사용하여 읽지 않은 채팅 메시지 수를 비동기적으로 가져옵니다.

MarkAsSeenAsync()

모든 전송 메시지를 표시된 대로 비동기적으로 표시합니다.

MarkAsSeenAsync(IIterable<String>)

모든 전송 메시지를 표시된 대로 비동기적으로 표시합니다.

MarkMessageReadAsync(String)

저장소에서 지정된 메시지를 이미 읽은 것으로 표시합니다.

RetrySendMessageAsync(String)

메시지 저장소에서 지정된 메시지를 다시 보내려고 시도합니다.

SaveMessageAsync(ChatMessage)

메시지를 ChatMessageStore에 비동기적으로 저장합니다.

SendMessageAsync(ChatMessage)

채팅 메시지를 보내려고 시도합니다. 메시지는 보내기 작업의 일부로 메시지 저장소에 저장됩니다.

TryCancelDownloadMessageAsync(String)

지정된 메시지 다운로드를 취소하려고 비동기적으로 시도합니다.

TryCancelSendMessageAsync(String)

지정된 메시지 보내기를 취소하려고 비동기적으로 시도합니다.

ValidateMessage(ChatMessage)

채팅 메시지가 유효한지 확인하고 유효성 검사 결과를 반환합니다.

이벤트

MessageChanged

메시지 저장소의 메시지가 변경되면 발생하는 이벤트입니다.

StoreChanged

ChatMessageStore의 항목이 변경되면 발생합니다.

적용 대상