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

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

Syntax

Visual Basic (Declaration)
Public 
Function 
EndFindUsers ( _
	
asyncResult 
As 
IAsyncResult, _
		<
OutAttribute> 
ByRef 
moreAvailable 
As 
Boolean _
) 
As 
ReadOnlyCollection(
Of 

GroupChatPrincipalSummary)
Visual Basic (Usage)
Dim 
instance 
As 

GroupChatUserAdministrationServices
Dim 
asyncResult 
As 
IAsyncResult
Dim 
moreAvailable 
As 
Boolean
Dim 
returnValue 
As 
ReadOnlyCollection(
Of 

GroupChatPrincipalSummary)

returnValue = instance.
EndFindUsers(
asyncResult, _
	
moreAvailable)
C#
public 
ReadOnlyCollection<

GroupChatPrincipalSummary> 
EndFindUsers(
	
IAsyncResult 
asyncResult,
	
out 
bool 
moreAvailable
)

Parameters

asyncResult
Type: System . . :: . . IAsyncResult

The IAsyncResult that references this operation.

moreAvailable
Type: System . . :: . . Boolean %

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

Return Value

Type: System.Collections.ObjectModel . . :: . . ReadOnlyCollection < (Of < ( <' GroupChatPrincipalSummary > ) > ) >

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

Exceptions

Exception Condition
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