PersistentChatUserServices.EndFindUsers(IAsyncResult, Boolean) Method

Definition

Completes the asynchronous request initiated by BeginFindUsers(String, String, String, AsyncCallback, Object)

public:
 System::Collections::ObjectModel::ReadOnlyCollection<Microsoft::Rtc::Collaboration::PersistentChat::Management::PersistentChatPrincipalSummary ^> ^ EndFindUsers(IAsyncResult ^ asyncResult, [Runtime::InteropServices::Out] bool % moreAvailable);
public System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.Rtc.Collaboration.PersistentChat.Management.PersistentChatPrincipalSummary> EndFindUsers (IAsyncResult asyncResult, out bool moreAvailable);
member this.EndFindUsers : IAsyncResult *  -> System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.Rtc.Collaboration.PersistentChat.Management.PersistentChatPrincipalSummary>
Public Function EndFindUsers (asyncResult As IAsyncResult, ByRef moreAvailable As Boolean) As ReadOnlyCollection(Of PersistentChatPrincipalSummary)

Parameters

asyncResult
IAsyncResult

The IAsyncResult that references this operation.

moreAvailable
Boolean

Output parameter - set to true if this search has truncated results. When true, consider trying the search again with more restrictive search criteria.

Returns

A collection of objects describing users or user groups matching any of the specified search strings.

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