Completes the asynchronous request initiated by BeginUploadFile(ChatRoomFileUploadJob, AsyncCallback, Object) .

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

Syntax

Visual Basic (Declaration)
Public 
Function 
EndUploadFile ( _
	
asyncResult 
As 
IAsyncResult _
) 
As 
String
Visual Basic (Usage)
Dim 
instance 
As 

ChatRoomSession
Dim 
asyncResult 
As 
IAsyncResult
Dim 
returnValue 
As 
String

returnValue = instance.
EndUploadFile(
asyncResult)
C#
public 
string 
EndUploadFile(
	
IAsyncResult 
asyncResult
)

Parameters

asyncResult
Type: System . . :: . . IAsyncResult

The IAsyncResult that references this operation.

Return Value

Type: System . . :: . . String

The URI of the file which was uploaded

Exceptions

Exception Condition
ArgumentException

Thrown when invalid arguments are passed.

[Microsoft.Rtc.Collaboration.GroupChat.CommandFailedException]

Thrown when the chat server encountered an error processing the request.

[RealTimeException]

Thrown when the GroupChatEndpoint encounters an error communicating with the group chat server.

[System.InvalidOperationException]

Thrown when invoked multiple times with the same asyncResult.

See Also