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

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

Syntax

Visual Basic (Declaration)
Public 
Function 
EndBrowseChatRoomsByInvitations ( _
	
asyncResult 
As 
IAsyncResult, _
		<
OutAttribute> 
ByRef 
lastInviteID 
As 
Integer _
) 
As 
ReadOnlyCollection(
Of 

ChatRoomSnapshot)
Visual Basic (Usage)
Dim 
instance 
As 

GroupChatServices
Dim 
asyncResult 
As 
IAsyncResult
Dim 
lastInviteID 
As 
Integer
Dim 
returnValue 
As 
ReadOnlyCollection(
Of 

ChatRoomSnapshot)

returnValue = instance.
EndBrowseChatRoomsByInvitations(
asyncResult, _
	
lastInviteID)
C#
public 
ReadOnlyCollection<

ChatRoomSnapshot> 
EndBrowseChatRoomsByInvitations(
	
IAsyncResult 
asyncResult,
	
out 
int 
lastInviteID
)

Parameters

asyncResult
Type: System . . :: . . IAsyncResult

The IAsyncResultthat references this operation.

lastInviteID
Type: System . . :: . . Int32 %

The lastInviteID returned from this request.

Return Value

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

A collection of ChatRoomSnapshot objects describing chat rooms to which the user has been invited. See BeginBrowseChatRoomsByInvitations(Int32, AsyncCallback, Object) .

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