ChatMessageReader 类

定义

提供从消息存储区读取消息的方法。

public ref class ChatMessageReader 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 ChatMessageReader 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 ChatMessageReader
Public NotInheritable Class ChatMessageReader
继承
Object Platform::Object IInspectable ChatMessageReader
属性

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 blockedChatMessages chatSystem smsSend

方法

ReadBatchAsync()

从消息存储中返回聊天消息的批列表。

ReadBatchAsync(Int32)

返回消息存储区中聊天消息的批列表,该列表限制为指定大小。

适用于