ChatRoomSession.EndGetRecentChatHistory method

Lync 2013

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

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

'Declaration
Public Function EndGetRecentChatHistory ( _
	asyncResult As IAsyncResult _
) As ReadOnlyCollection(Of ChatMessage)
'Usage
Dim instance As ChatRoomSession
Dim asyncResult As IAsyncResult
Dim returnValue As ReadOnlyCollection(Of ChatMessage)

returnValue = instance.EndGetRecentChatHistory(asyncResult)

Parameters

asyncResult
Type: System.IAsyncResult

The IAsyncResult that references this operation.

Return value

Type: System.Collections.ObjectModel.ReadOnlyCollection<ChatMessage>
A collection of the most recent chat messages from the chat room to which this session is joined.

ExceptionCondition
ArgumentNullException

asyncResult is null.

CommandFailedException

The chat server encountered an error processing the request.

RealTimeException

The PersistentChatEndpoint encountered an error communicating with the chat server.

InvalidOperationException

This method was invoked multiple times with the same IAsyncResult instance.

Show:
© 2015 Microsoft