ChatRoomSession.BeginUploadFile Method

Definition

Uploads a file to the chat room.

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

Parameters

job
ChatRoomFileUploadJob

Information about the file to upload.

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. See EndUploadFile(IAsyncResult) to complete this asynchronous operation.

Applies to