PersistentChatServices.EndQueryChatHistory(IAsyncResult) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Completes the asynchronous request initiated by BeginQueryChatHistory(ICollection<Uri>, ChatHistoryQueryOptions, AsyncCallback, Object) or BeginQueryChatHistory(ICollection<Uri>, String, Boolean, Boolean, AsyncCallback, Object)
public:
System::Collections::ObjectModel::ReadOnlyCollection<Microsoft::Rtc::Collaboration::PersistentChat::ChatHistoryResult ^> ^ EndQueryChatHistory(IAsyncResult ^ asyncResult);
public System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.Rtc.Collaboration.PersistentChat.ChatHistoryResult> EndQueryChatHistory(IAsyncResult asyncResult);
member this.EndQueryChatHistory : IAsyncResult -> System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.Rtc.Collaboration.PersistentChat.ChatHistoryResult>
Public Function EndQueryChatHistory (asyncResult As IAsyncResult) As ReadOnlyCollection(Of ChatHistoryResult)
Parameters
- asyncResult
- IAsyncResult
The IAsyncResult that references this operation.
Returns
A collection of ChatHistoryResult objects, one for each chat room that was queried, containing messages that match the query.
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 invoked multiple times with the same IAsyncResult instance.