ChatRoomSession.BeginDownloadFile Method

Definition

Downloads a file from the chat room.

public:
 IAsyncResult ^ BeginDownloadFile(Microsoft::Rtc::Collaboration::PersistentChat::ChatRoomFileDownloadJob ^ job, AsyncCallback ^ userCallback, System::Object ^ state);
public IAsyncResult BeginDownloadFile (Microsoft.Rtc.Collaboration.PersistentChat.ChatRoomFileDownloadJob job, AsyncCallback userCallback, object state);
member this.BeginDownloadFile : Microsoft.Rtc.Collaboration.PersistentChat.ChatRoomFileDownloadJob * AsyncCallback * obj -> IAsyncResult
Public Function BeginDownloadFile (job As ChatRoomFileDownloadJob, userCallback As AsyncCallback, state As Object) As IAsyncResult

Parameters

job
ChatRoomFileDownloadJob

The file download job.

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

job is null.

The chat server connection is not in a valid state to send the command or job contains invalid data. The exception contains detailed information about the error.

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

The persistent chat web service encountered an error processing the request.

Remarks

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

Applies to