Share via


SendResponse Method (Int32)

Sends a response to the message unless DisableAutomaticResponse is true.

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

Syntax

'Declaration
Public Sub SendResponse ( _
    responseCode As Integer _
)
'Usage
Dim instance As MessageReceivedEventArgs
Dim responseCode As Integer

instance.SendResponse(responseCode)
public void SendResponse(
    int responseCode
)

Parameters

Exceptions

Exception Condition
RealTimeException

Thrown when a transport error occurred while sending a response.

InvalidOperationException

Thrown when in an invalid state or when a response has already been sent.

Remarks

This method is optional for message received events. If the application does not call [SendResponse] in [MessageReceived] handlers, the platform automatically responds with [ResponseCode.Succeeded].

See Also

Reference

MessageReceivedEventArgs Class

MessageReceivedEventArgs Members

SendResponse Overload

Microsoft.Rtc.Signaling Namespace