ChatRoomSession.EndGetRecentChatHistory(IAsyncResult) Method

Definition

Completes the asynchronous request initiated by BeginGetRecentChatHistory(Int32, AsyncCallback, Object)

public:
 System::Collections::ObjectModel::ReadOnlyCollection<Microsoft::Rtc::Collaboration::PersistentChat::ChatMessage ^> ^ EndGetRecentChatHistory(IAsyncResult ^ asyncResult);
public System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.Rtc.Collaboration.PersistentChat.ChatMessage> EndGetRecentChatHistory (IAsyncResult asyncResult);
member this.EndGetRecentChatHistory : IAsyncResult -> System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.Rtc.Collaboration.PersistentChat.ChatMessage>
Public Function EndGetRecentChatHistory (asyncResult As IAsyncResult) As ReadOnlyCollection(Of ChatMessage)

Parameters

asyncResult
IAsyncResult

The IAsyncResult that references this operation.

Returns

A collection of the most recent chat messages from the chat room to which this session is joined.

Exceptions

asyncResult is null.

The chat server encountered an error processing the request.

The PersistentChatEndpoint encountered an error communicating with the chat server.

This method was invoked multiple times with the same IAsyncResult instance.

Applies to