Share via


GroupChatServices.EndQueryChatHistory Method

Completes the asynchronous request initiated by BeginQueryChatHistory(ICollection<Uri>, ChatHistoryQueryOptions, AsyncCallback, Object) or BeginQueryChatHistory(ICollection<Uri>, String, Boolean, Boolean, AsyncCallback, Object).

Namespace:  Microsoft.Rtc.Collaboration.GroupChat
Assembly:  Microsoft.Rtc.Collaboration.GroupChat (in Microsoft.Rtc.Collaboration.GroupChat.dll)

Syntax

'Declaration
Public Function EndQueryChatHistory ( _
    asyncResult As IAsyncResult _
) As ReadOnlyCollection(Of ChatHistoryResult)
'Usage
Dim instance As GroupChatServices
Dim asyncResult As IAsyncResult
Dim returnValue As ReadOnlyCollection(Of ChatHistoryResult)

returnValue = instance.EndQueryChatHistory(asyncResult)
public ReadOnlyCollection<ChatHistoryResult> EndQueryChatHistory(
    IAsyncResult asyncResult
)

Parameters

Return Value

Type: System.Collections.ObjectModel.ReadOnlyCollection<ChatHistoryResult>
A collection of ChatHistoryResult objects, one for each chat room that was queried, containing messages that match the query.

Exceptions

Exception Condition
[System.ArgumentException]

Thrown when invalid arguments are passed.

[Microsoft.Rtc.Collaboration.GroupChat.CommandFailedException]

Thrown when the chat server encountered an error processing the request.

[RealTimeException]

Thrown when the GroupChatEndpoint encounters an error communicating with the group chat server.

[System.InvalidOperationException]

Thrown when invoked multiple times with the same asyncResult.

See Also

Reference

GroupChatServices Class

GroupChatServices Members

Microsoft.Rtc.Collaboration.GroupChat Namespace