ChatMessageReader.ReadBatchAsync Method

Definition

Overloads

ReadBatchAsync()

Returns a batch list of chat messages from the message store.

ReadBatchAsync(Int32)

Returns a batch list of chat messages from the message store limited to the specified size.

ReadBatchAsync()

Returns a batch list of chat messages from the message store.

public:
 virtual IAsyncOperation<IVectorView<ChatMessage ^> ^> ^ ReadBatchAsync() = ReadBatchAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<IVectorView<ChatMessage>> ReadBatchAsync();
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<IReadOnlyList<ChatMessage>> ReadBatchAsync();
function readBatchAsync()
Public Function ReadBatchAsync () As IAsyncOperation(Of IReadOnlyList(Of ChatMessage))

Returns

An asynchronous operation that returns a list of chat messages upon successful completion.

Attributes

Windows requirements

App capabilities
chat blockedChatMessages chatSystem smsSend

Remarks

This method returns an IReadOnlyList of ChatMessage class objects. The method is invoked as an IAsyncOperation as shown in the following example:

IReadOnlyList<ChatMessage> msgList = await messageStore.GetMessageReader.ReadBatchAsync();

See also

Applies to

ReadBatchAsync(Int32)

Returns a batch list of chat messages from the message store limited to the specified size.

public:
 virtual IAsyncOperation<IVectorView<ChatMessage ^> ^> ^ ReadBatchAsync(int count) = ReadBatchAsync;
/// [Windows.Foundation.Metadata.Overload("ReadBatchWithCountAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<IVectorView<ChatMessage>> ReadBatchAsync(int const& count);
[Windows.Foundation.Metadata.Overload("ReadBatchWithCountAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<IReadOnlyList<ChatMessage>> ReadBatchAsync(int count);
function readBatchAsync(count)
Public Function ReadBatchAsync (count As Integer) As IAsyncOperation(Of IReadOnlyList(Of ChatMessage))

Parameters

count
Int32

int

The size of the batch to read.

Returns

An asynchronous operation that returns a list of chat messages upon successful completion.

Attributes

Windows requirements

App capabilities
chat blockedChatMessages chatSystem smsSend

See also

Applies to