Sends a response to this message with specified response code. This method is optional for message received events. If the application does not call SendResponse in MessageReceived handlers, the platform will automatically respond with ResponseCode.Succeeded.

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

Syntax

Visual Basic (Declaration)
Public 
Sub 
SendResponse ( _
	
responseCode 
As 
Integer _
)
C#
public 
void 
SendResponse(
	
int 
responseCode
)
Visual C++
public:
void 
SendResponse(
	
int 
responseCode
)
JavaScript
function 
sendResponse(
responseCode);

Parameters

responseCode
Type: Int32
The response code to be sent.

Exceptions

Exception Condition
InvalidOperationException Thrown when in an invalid state or when a response has already been sent.
Microsoft.Rtc.Signaling . . :: . RealTimeException Thrown when a transport error occurred while sending a response.

See Also