ChatRoomSession.BeginGetRecentChatHistory Method

Definition

Returns the requested number of recent chat messages for this chat room, up to the server limit.

public:
 IAsyncResult ^ BeginGetRecentChatHistory(int number, AsyncCallback ^ userCallback, System::Object ^ state);
public IAsyncResult BeginGetRecentChatHistory (int number, AsyncCallback userCallback, object state);
member this.BeginGetRecentChatHistory : int * AsyncCallback * obj -> IAsyncResult
Public Function BeginGetRecentChatHistory (number As Integer, userCallback As AsyncCallback, state As Object) As IAsyncResult

Parameters

number
Int32

The number of messages requested.

userCallback
AsyncCallback

The callback method to be invoked when this asynchronous operation completes.

state
Object

An object to be passed back to the callback.

Returns

An IAsyncResult object that references this operation.

Exceptions

number is less than 1.

The chat server connection is not in a valid state to send the command.

The PersistentChatEndpoint encountered an error communicating with the persistent chat server.

Remarks

This request will be processed asynchronously. Call EndGetRecentChatHistory(IAsyncResult) to complete this asynchronous operation.

Applies to