ChatRoomSession.BeginUploadFile Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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 PersistentChatEndpoint is not established.
The State is not Established.
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.